#date #time #calendar #duration

time-macros

Procedural macros for the time crate

4 releases

0.2.0-alpha.1 Jun 13, 2021
0.2.0-alpha.0 Apr 22, 2021
0.1.1 Sep 29, 2020
0.1.0 Jan 17, 2020
0.0.0-alpha.0 Dec 2, 2019

#8 in Date and time

Download history 127295/week @ 2021-04-07 125617/week @ 2021-04-14 123383/week @ 2021-04-21 124095/week @ 2021-04-28 122613/week @ 2021-05-05 129498/week @ 2021-05-12 124435/week @ 2021-05-19 128698/week @ 2021-05-26 122607/week @ 2021-06-02 128433/week @ 2021-06-09 128422/week @ 2021-06-16 123029/week @ 2021-06-23 130096/week @ 2021-06-30 129574/week @ 2021-07-07 135355/week @ 2021-07-14 123951/week @ 2021-07-21

531,714 downloads per month
Used in 1,272 crates (via time)

MIT/Apache

71KB
2K SLoC

time

minimum rustc: 1.46 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.

No runtime deps

Features

  • large-dates

~0.5–1MB
~23K SLoC