| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| .github/ | 06-Sep-2024 | - | 339 | 290 | ||
| src/ | 06-Sep-2024 | - | 31,071 | 18,915 | ||
| tests/ | 06-Sep-2024 | - | 276 | 194 | ||
| .cargo_vcs_info.json | D | 06-Sep-2024 | 94 | 6 | 6 | |
| .git-ignore-revs | D | 06-Sep-2024 | 54 | 2 | 1 | |
| .gitignore | D | 06-Sep-2024 | 63 | 7 | 5 | |
| Android.bp | D | 06-Sep-2024 | 4.1 KiB | 176 | 168 | |
| CHANGELOG.md | D | 06-Sep-2024 | 23.4 KiB | 732 | 453 | |
| CITATION.cff | D | 06-Sep-2024 | 768 | 34 | 31 | |
| Cargo.toml | D | 06-Sep-2024 | 3.1 KiB | 155 | 133 | |
| Cargo.toml.orig | D | 06-Sep-2024 | 2.6 KiB | 78 | 65 | |
| LICENSE | D | 06-Sep-2024 | 12 KiB | 241 | 196 | |
| LICENSE.txt | D | 06-Sep-2024 | 12 KiB | 241 | 196 | |
| METADATA | D | 06-Sep-2024 | 591 | 21 | 19 | |
| MODULE_LICENSE_APACHE2 | D | 06-Sep-2024 | 0 | |||
| OWNERS | D | 06-Sep-2024 | 40 | 2 | 1 | |
| README.md | D | 06-Sep-2024 | 3.8 KiB | 84 | 62 | |
| TEST_MAPPING | D | 06-Sep-2024 | 317 | 15 | 14 | |
| appveyor.yml | D | 06-Sep-2024 | 203 | 13 | 9 | |
| cargo_embargo.json | D | 06-Sep-2024 | 152 | 7 | 6 | |
| deny.toml | D | 06-Sep-2024 | 218 | 12 | 10 | |
| rustfmt.toml | D | 06-Sep-2024 | 29 | 2 | 1 | |
| taplo.toml | D | 06-Sep-2024 | 83 | 5 | 3 |
README.md
1[Chrono][docsrs]: Timezone-aware date and time handling 2======================================== 3 4[![Chrono GitHub Actions][gh-image]][gh-checks] 5[![Chrono on crates.io][cratesio-image]][cratesio] 6[![Chrono on docs.rs][docsrs-image]][docsrs] 7[![Chat][discord-image]][discord] 8[![codecov.io][codecov-img]][codecov-link] 9 10[gh-image]: https://github.com/chronotope/chrono/actions/workflows/test.yml/badge.svg?branch=main 11[gh-checks]: https://github.com/chronotope/chrono/actions/workflows/test.yml?query=branch%3Amain 12[cratesio-image]: https://img.shields.io/crates/v/chrono.svg 13[cratesio]: https://crates.io/crates/chrono 14[docsrs-image]: https://docs.rs/chrono/badge.svg 15[docsrs]: https://docs.rs/chrono 16[discord-image]: https://img.shields.io/discord/976380008299917365?logo=discord 17[discord]: https://discord.gg/sXpav4PS7M 18[codecov-img]: https://img.shields.io/codecov/c/github/chronotope/chrono?logo=codecov 19[codecov-link]: https://codecov.io/gh/chronotope/chrono 20 21Chrono aims to provide all functionality needed to do correct operations on dates and times in the 22[proleptic Gregorian calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar): 23 24* The [`DateTime`](https://docs.rs/chrono/latest/chrono/struct.DateTime.html) type is timezone-aware 25 by default, with separate timezone-naive types. 26* Operations that may produce an invalid or ambiguous date and time return `Option` or 27 [`LocalResult`](https://docs.rs/chrono/latest/chrono/offset/enum.LocalResult.html). 28* Configurable parsing and formatting with an `strftime` inspired date and time formatting syntax. 29* The [`Local`](https://docs.rs/chrono/latest/chrono/offset/struct.Local.html) timezone works with 30 the current timezone of the OS. 31* Types and operations are implemented to be reasonably efficient. 32 33Timezone data is not shipped with chrono by default to limit binary sizes. Use the companion crate 34[Chrono-TZ](https://crates.io/crates/chrono-tz) or [`tzfile`](https://crates.io/crates/tzfile) for 35full timezone support. 36 37## Documentation 38 39See [docs.rs](https://docs.rs/chrono/latest/chrono/) for the API reference. 40 41## Limitations 42 43* Only the proleptic Gregorian calendar (i.e. extended to support older dates) is supported. 44* Date types are limited to about +/- 262,000 years from the common epoch. 45* Time types are limited to nanosecond accuracy. 46* Leap seconds can be represented, but Chrono does not fully support them. 47 See [Leap Second Handling](https://docs.rs/chrono/latest/chrono/naive/struct.NaiveTime.html#leap-second-handling). 48 49## Crate features 50 51Default features: 52 53* `alloc`: Enable features that depend on allocation (primarily string formatting) 54* `std`: Enables functionality that depends on the standard library. This is a superset of `alloc` 55 and adds interoperation with standard library types and traits. 56* `clock`: Enables reading the local timezone (`Local`). This is a superset of `now`. 57* `now`: Enables reading the system time (`now`) 58* `wasmbind`: Interface with the JS Date API for the `wasm32` target. 59 60Optional features: 61 62* `serde`: Enable serialization/deserialization via serde. 63* `rkyv`: Enable serialization/deserialization via rkyv. 64* `rustc-serialize`: Enable serialization/deserialization via rustc-serialize (deprecated). 65* `arbitrary`: construct arbitrary instances of a type with the Arbitrary crate. 66* `unstable-locales`: Enable localization. This adds various methods with a `_localized` suffix. 67 The implementation and API may change or even be removed in a patch release. Feedback welcome. 68 69## Rust version requirements 70 71The Minimum Supported Rust Version (MSRV) is currently **Rust 1.61.0**. 72 73The MSRV is explicitly tested in CI. It may be bumped in minor releases, but this is not done 74lightly. 75 76## License 77 78This project is licensed under either of 79 80* [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) 81* [MIT License](https://opensource.org/licenses/MIT) 82 83at your option. 84