-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to obtain the system's UTC offset #239
Comments
Any progress with this? By the way, great review from Colin Eberhardt about time zones and IANA: |
wasi-clocks did not have a goal of implementing timezones. It implemented Then we would likely want to add to wasi-libc so that the following POSIX code works: let mut tp = std::mem::MaybeUninit::<libc::timeval>::uninit();
let tz = std::ptr::null_mut::<libc::timezone>();
let is_error = unsafe { libc::gettimeofday(tp.as_mut_ptr(), tz) }; A totally different approach would be to surface a higher-level set of APIs like the Internationalization API Specification. The handle to |
See bytecodealliance/wasmtime#1200. It would be great to be able to obtain both the system's current UTC offset and the offset at a particular moment in time.
Related?: #25
The text was updated successfully, but these errors were encountered: