Open
Description
There's a pure Kotlin implementation of the datetime library for Kotlin/Native. This code can be used directly to implement the JS and Wasm targets—except for timezone database access.
- There's a discussion about exposing the timezone database via WASI: System collation and system timezone data WebAssembly/WASI#25
- We could keep using js-joda's (https://github.com/js-joda/js-joda) timezone database, even if we reimplement the code for database calculations.
- Maybe other libraries provide timezone database access? There is https://www.npmjs.com/package/@vvo/tzdb, but it doesn't seem to have historical data.
- There is timezone support in JS's
Intl
for formatting (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat); maybe the underlying data is available somehow. - We could ship our own timezone databases.