chrono
chrono copied to clipboard
Date and time library for Rust
More tests for combinations of `DateTime::into`. Follow-up to Pull Request #271.
The first commit is shared with https://github.com/chronotope/chrono/pull/1082. Then a couple of commits do some cleanup and add a new offset parser. All the test keep passing, except some of those...
Split out from https://github.com/chronotope/chrono/pull/1040.
This PR aims to address https://github.com/chronotope/chrono/issues/196#issuecomment-1549430697 - [x] Implement ts_seconds_string (in DateTime) - [x] Implement ts_milliseconds_string - [x] Implement ts_microseconds_string - [x] Implement ts_nanoseconds_string - [x] Add optionals (e.g. ts_seconds_string_option)...
If the general direction of this documentation seems useful, I can write it for more types. My idea is to give a tour of the available methods on a type,...
* Add overflowing_add_opt and overflowing_sub_opt, similar to the existing overflowing_add_signed/overflowing_sub_signed. The implementations are a bit more complex as as they can no longer use negation. There may be opportunity for...
These functions are to reduce the number of unwraps needed when creating NaiveDates
change Days to take a u32 and addition of DaysDelta to NaiveDate, changes to Iterator Implementations This has been separated out from #824
Fixes #945.
The following code works with chrono 0.4.31, but fails with 0.4.32: ```rust fn main() { use chrono::NaiveDate; let min_naive_date: NaiveDate = NaiveDate::MIN; assert_eq!( min_naive_date, NaiveDate::from_ymd_opt(-262144, 1, 1).unwrap() ); } ```...