Expand description
This crates provides Local, a chrono TimeZone implementation to correctly fetch the local
timezone on Android, using the localtime_rz and mktime_z functions from Bionic.
Unlike localtime and mktime these functions are fully thread-safe. They were added in
Android 15 (API level 35) so won’t work in earlier Android versions. If you’re using this crate
in an Android app then ensure your minSdk is set to 35 or higher.
It also provides Tz to use arbitrary timezones from the system timezone database, by Olson
ID.
Structs§
- Local
- The local system timezone as seen in Settings, from the
persist.sys.timezoneproperty. - Tz
- A named timezone.
- TzOffset
- An offset for a timezone from the system database.
Enums§
- TzError
- An error getting a timezone from the system database.