Paul Dicker
Paul Dicker
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...
Updated version of https://github.com/chronotope/chrono/pull/580. A comment in the related issue https://github.com/chronotope/chrono/issues/105#issuecomment-633260201 has collected 28 thumb ups in three years. This may be our most popular feature request. The only method...
If the timestamp of a `DateTime` is near the end of the range of `NaiveDateTime` and the offset pushes the timestamp beyond that range, the `Debug` implementation can panic. ```rust...
I am very happy to have something like this! ```rust // NaiveDate date!(2023-09-08); // calendar date date!(2023-251); // ordinal date // NaiveTime time!(7:03); // seconds are optional time!(7:03:00); time!(23:59:60); //...
We currently have a 234-line `format_inner` function. In https://github.com/chronotope/chrono/pull/1163 I found a way to make it a bit nicer and faster. This is only the initial refactoring, that splits it...
Split out from https://github.com/chronotope/chrono/pull/1144. RFC 3339 is not defined for dates with a year outside of 0..=9999 (like RFC 2822). ISO 8601 does support it. `DateTime::to_rfc3339` was a hybrid method,...
Split out from https://github.com/chronotope/chrono/pull/1144. This adds a new method `try_to_rfc2822` that returns `None` instead of panicking on years outside of 0..9999.
See https://github.com/chronotope/chrono/issues/1282. As a first PR this adds nothing but the type, methods to set and get the individual components, and a `Display` implementation. We have 5 components: months, days,...
This resurrects the work in https://github.com/chronotope/chrono/pull/216 by @clarfonthey. `WeekDay::days_since` doesn't offer any new functionality, but I quite like its API. Fixes https://github.com/chronotope/chrono/issues/201.
This has now reached a basic working state that might pass the CI. Not that it ever did on first try... There still is a lot to do when it...