#date #time #calendar #duration

no-std time

Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std].

76 releases

0.3.2 Aug 25, 2021
0.3.0 Jul 30, 2021
0.2.26 Mar 16, 2021
0.2.23 Nov 17, 2020
0.1.0 Nov 27, 2014

#10 in No standard library

Download history 468499/week @ 2021-05-29 504388/week @ 2021-06-05 507407/week @ 2021-06-12 504001/week @ 2021-06-19 507813/week @ 2021-06-26 500573/week @ 2021-07-03 504146/week @ 2021-07-10 507157/week @ 2021-07-17 521980/week @ 2021-07-24 560671/week @ 2021-07-31 572912/week @ 2021-08-07 598263/week @ 2021-08-14 596643/week @ 2021-08-21 589485/week @ 2021-08-28 554420/week @ 2021-09-04 657328/week @ 2021-09-11

2,244,915 downloads per month
Used in 6,423 crates (1,025 directly)

MIT/Apache

360KB
6.5K SLoC

time

minimum rustc: 1.48 version build status codecov

Documentation:

Minimum Rust version policy

The time crate is guaranteed to compile with any release of rustc from the past six months. Optional feature flags that enable interoperability with third-party crates (e.g. rand) follow the policy of that crate if stricter.

Contributing

Contributions are always welcome! If you have an idea, it's best to float it by me before working on it to ensure no effort is wasted. If there's already an open issue for it, knock yourself out. Internal documentation can be viewed here.

If you have any questions, feel free to use Discussions or Codestream. There are a few notes inline with Codestream, though questions can be asked directly! As a bonus, they are visible and searchable for others. Feedback (prior to opening a pull request) can be provided with Codestream and VS Live Share. Don't hesitate to ask questions — that's what I'm here for!

If using Codestream, just open up a local copy of this repository. It should add you automatically.

License

This project is licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in time by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies