sunfishcode labeled Issue #1200:
Feature
Ability to fetch the system's UTC offset via an internal syscall.
Implementation
The time crate has an implementation allowing for obtaining the offset for Windows, MacOS, Linux, and Solaris (plus
cargo_web
support). This could likely be used as a starting point.Alternatives
There really aren't any, given that this is inherently a system API.
I'm happy to answer any questions you may have!
bjorn3 commented on Issue #1200:
I think this should be closed in favor of https://github.com/WebAssembly/WASI/issues/239.
peterhuene commented on Issue #1200:
Agreed this belongs in the WASI repo. Thanks for opening this issue @jhpratt!
peterhuene closed Issue #1200:
Feature
Ability to fetch the system's UTC offset via an internal syscall.
Implementation
The time crate has an implementation allowing for obtaining the offset for Windows, MacOS, Linux, and Solaris (plus
cargo_web
support). This could likely be used as a starting point.Alternatives
There really aren't any, given that this is inherently a system API.
I'm happy to answer any questions you may have!
Last updated: Nov 22 2024 at 16:03 UTC