Commit graph

4 commits

Author SHA1 Message Date
Andrew Gallant
b3f9c1effe doc: some minor clean-ups
This just fixes some errors I found in the prose when re-reading some of
it.

This also adds some `Zoned::start_of_day` test cases from
https://github.com/tc39/proposal-temporal/issues/3110
2025-05-05 20:33:34 -04:00
Andrew Gallant
4d8a4caa21 api: add in_tz and deprecate intz
This applies to `Zoned`, `Timestamp`, `civil::DateTime` and
`civil::Date`.

Ref #28
2025-01-20 22:25:08 -05:00
Andrew Gallant
6926d6d84f tz: add support for the Android platform
Android support has two prongs:

* The special Android concatenated time zone database will now be read
  by Jiff automatically.
* The `persist.sys.timezone` Android property is read to determine the
  system's configured IANA time zone identifier.

Closes #140
2025-01-12 15:38:41 -05:00
Andrew Gallant
a44e494ff2 jiff: add robust WASM support
This PR basically makes the `wasm{32,64}-unknown-unknown` targets work
_almost_ out of the box. All you need to do is enable Jiff's new `js`
crate feature. This will cause Jiff to depend on `js-sys` and
`wasm-bindgen`. Jiff will then use Javascript APIs to determine the
current time and time zone.

This PR also includes a new long form guide, `PLATFORM.md`, which
describes Jiff's platform support in one central location. (Most
information is already in Jiff's API docs, but it's scattered in a
variety of places.)

Finally, this adds a `wasm32-unknown-unknown` test to CI courtesy of
`wasm-pack`. It just does a basic sanity check that the current time and
time zone can be retrieved.

Fixes #56
2024-07-30 17:16:37 -07:00