chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Date and time library for Rust

Results 262 chrono issues
Sort by recently updated
recently updated
newest added

Taking over from #1412. Fixes #1292.

Gave my first try fuzzing chrono, starting with setting the TZ env variable. It came up with "pBB24" We accept an offset of +24 hours for a time zone named...

In a proprietary project we're currently locked to chrono 0.4.19 because the recent addition of caching the timezone broke our code. I have to admit that the way we propagate...

Has anybody reviewed https://github.com/HowardHinnant/date library and see if there are some improvements that we can "inspire" chrono on ?

This works: ``` DateTime::parse_from_str("2014-09-17 00:00:00 +10:00", "%F %T %z") ``` But this gives a ParseError(BadFormat): ``` DateTime::parse_from_str("2014-09-17 00:00:00 AEDT", "%F %T %Z") ```

I want to parse the following example string: `"03:00 +3"` where `+3` is the timezone offset, i.e. the format `%#z` or `%:::z` but without leading zeros. I have already tried...

parsing

Currently, [the `ParseError` docs](https://docs.rs/chrono/0.4.9/chrono/format/struct.ParseError.html) don't even mention it's an `enum`, let alone what the variants are and what they mean. There's a lot of good documentation [in the source code](https://docs.rs/chrono/0.4.9/src/chrono/format/mod.rs.html#272)...

Here's an minimal recreation ```rust // -- passes as expected since seconds are too large assert_eq!(None, NaiveTime::from_hms_opt(11, 22, 60)); // -- bug: should pass because seconds are too large assert!(NaiveTime::parse_from_str("11:22:60",...

I am trying to run the following Code on a Windows 11 machine, latest chrono version, latest Rust version, but it fails with the error mentioned below: ```rust let date...

It is very useful for me to have [this](https://docs.rs/chrono/latest/chrono/serde/ts_milliseconds/index.html) for `DateTime`.