Stream: git-wasmtime

Topic: wasmtime / Issue #1200 Ability to obtain the system's UTC...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2020 at 04:20):

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!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2021 at 17:49):

bjorn3 commented on Issue #1200:

I think this should be closed in favor of https://github.com/WebAssembly/WASI/issues/239.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2021 at 18:16):

peterhuene commented on Issue #1200:

Agreed this belongs in the WASI repo. Thanks for opening this issue @jhpratt!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2021 at 18:16):

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