commit | e37f46ed35f1e606082fe66ee8a1c86c89579cb5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 28 21:48:31 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 28 21:48:31 2024 +0000 |
tree | be316c14eb9ed549acfd5672cdb7a46e621fd2d1 | |
parent | 1eb632923f403105ecbaa61bcb5abefa3b283898 [diff] | |
parent | 27d49a355d73a4ebd4898e5c8d91d837069d21bf [diff] |
Snap for 11639370 from 27d49a355d73a4ebd4898e5c8d91d837069d21bf to emu-35-1-release Change-Id: I9c65dd19350c986c4e8e03b22501d4d95d1ec403
Chrono aims to provide all functionality needed to do correct operations on dates and times in the proleptic Gregorian calendar:
DateTime
type is timezone-aware by default, with separate timezone-naive types.Option
or LocalResult
.strftime
inspired date and time formatting syntax.Local
timezone works with the current timezone of the OS.Timezone data is not shipped with chrono by default to limit binary sizes. Use the companion crate Chrono-TZ or tzfile
for full timezone support.
See docs.rs for the API reference.
Default features:
alloc
: Enable features that depend on allocation (primarily string formatting)std
: Enables functionality that depends on the standard library. This is a superset of alloc
and adds interoperation with standard library types and traits.clock
: Enables reading the local timezone (Local
). This is a superset of now
.now
: Enables reading the system time (now
)wasmbind
: Interface with the JS Date API for the wasm32
target.Optional features:
serde
: Enable serialization/deserialization via serde.rkyv
: Enable serialization/deserialization via rkyv.rustc-serialize
: Enable serialization/deserialization via rustc-serialize (deprecated).arbitrary
: construct arbitrary instances of a type with the Arbitrary crate.unstable-locales
: Enable localization. This adds various methods with a _localized
suffix. The implementation and API may change or even be removed in a patch release. Feedback welcome.The Minimum Supported Rust Version (MSRV) is currently Rust 1.61.0.
The MSRV is explicitly tested in CI. It may be bumped in minor releases, but this is not done lightly.
This project is licensed under either of
at your option.