#date #time #calendar #duration

no-std time

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

82 releases

0.3.9 Mar 22, 2022
0.3.7 Jan 26, 2022
0.3.5 Nov 12, 2021
0.3.0 Jul 30, 2021
0.1.0 Nov 27, 2014

#2 in Date and time

Download history 843173/week @ 2022-01-29 802105/week @ 2022-02-05 820822/week @ 2022-02-12 801309/week @ 2022-02-19 951970/week @ 2022-02-26 915660/week @ 2022-03-05 884757/week @ 2022-03-12 954152/week @ 2022-03-19 981358/week @ 2022-03-26 972925/week @ 2022-04-02 975891/week @ 2022-04-09 978878/week @ 2022-04-16 988124/week @ 2022-04-23 938301/week @ 2022-04-30 999031/week @ 2022-05-07 970529/week @ 2022-05-14

4,070,965 downloads per month
Used in 8,721 crates (1,297 directly)


7.5K SLoC


minimum rustc: 1.53 version build status codecov


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.


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.


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.