chrono
chrono copied to clipboard
Date and time library for Rust
Add exhaustive set of tests for `DateTime::parse_from_str` function and all strftime specifiers. Issue #1112
With our strftime syntax it is possible to specify padding (zero padding `%0?`, spaces as padding `%_?`, no padding at all `%-?`, or the default). This maps to three variants...
Relates to #854, but doesn't replace datetime code as a mentioned possible approach. Uses icu4 for: * short_months * long_months * short_weekdays * long_weekdays * am_pm * decimal_point Still uses...
I'm porting code which makes use of the normalisation features of C's [`timegm`](https://nxmnpg.lemoda.net/3/timegm#:~:text=The%20original%20values,timegm(.))) > The original values of the tm_wday and tm_yday components of the structure are ignored, and the...
This issue is not meant to complain, but to discuss a problem that in my opinion we have with our process. Doing trivial changes is going great. Over the past...
Suppose the clock is turned back on say 2024-03-31 from 3:00 to 2:00 due to DST. We want to compare the current time with 2023-03-31 at 2:30: ```rust let now...
For a format/input string item that starts with a numeric literal, the various `parse_from_str` methods can return a `ParseError` error result of `TooShort` or `Invalid` if that literal comes directly...
`serde::Deserialize` is implemented for `DateTime`, but not for `DateTime`. This seems like an odd omission. It is inconvenient, because I prefer to use UTC dates exclusively in my application, but...
> ### Thanks for contributing to chrono! >If your feature is semver-compatible, please target the main branch; > for semver-incompatible changes, please target the `0.5.x` branch. I'm not sure what...
The `clock` feature currently pulls in timezone features which pulls in a bunch of crates to deal with timezones (`iana-time-zone`, `android-tz`). Some of these crates pull in system libraries that...