1630 Commits

Author SHA1 Message Date
Paul Dicker
2464a5d6e6 Add newlines between tests in time_delta module 2024-02-21 14:51:02 +01:00
Paul Dicker
188cf508b2 Remove trailing newlines in method documentation 2024-02-21 14:51:02 +01:00
Paul Dicker
10bc27575b Format inline comments 2024-02-21 14:51:02 +01:00
Paul Dicker
45f8cecabc Rustfmt doctests 2024-02-21 14:51:02 +01:00
Paul Dicker
60f8b742c9 CI: only run cargo hack check on Linux 2024-02-14 15:05:36 +01:00
Paul Dicker
e2e0dfe315 Run clippy also against Windows target 2024-02-14 14:24:04 +01:00
Paul Dicker
c8ff2c37a4 Fix clippy warning 2024-02-14 14:24:04 +01:00
Paul Dicker
042fd0c286 Use TimeDelta instead of Duration alias 2024-02-14 14:24:04 +01:00
Paul Dicker
21343bec7e Extend YearFlags documentation/constants 2024-02-14 10:59:06 +01:00
Paul Dicker
367fe84be6 MAX_OL and MAX_MDL can be private 2024-02-14 10:59:06 +01:00
Paul Dicker
83ad6207b2 Simplify test-only Mdf::valid method 2024-02-14 10:59:06 +01:00
Paul Dicker
e3ff4bc1d2 Casting a positive i8 through u8 is slightly faster 2024-02-14 10:59:06 +01:00
Paul Dicker
6eec070603 Comparing against zero is slightly faster 2024-02-14 10:59:06 +01:00
Paul Dicker
2703ca2d20 Use NonZeroI32::new_unchecked 2024-02-14 10:59:06 +01:00
Paul Dicker
8cc41ddf02 Don't use NaiveDate::from_ordinal_and_flags in from_mdf
It introduced a couple of extra checks in performance-sensitive code.
2024-02-14 10:59:06 +01:00
Paul Dicker
6d8ce13a71 Mdf::new: remove checks that are also done by the table lookup 2024-02-14 10:59:06 +01:00
Paul Dicker
7db1dc6d84 Add doc comments to Mdf methods 2024-02-14 10:59:06 +01:00
Paul Dicker
97403fdc30 Add benchmark for NaiveDate::from_ymd 2024-02-14 10:59:06 +01:00
Paul Dicker
4d4ff14bb9 CI: test cross-compiling to x86_64-unknown-illumos instead of Solaris 2024-02-13 22:44:14 +01:00
Paul Dicker
0b4d5ffe8a Use NonZeroI32 inside NaiveDate 2024-02-12 17:05:32 +01:00
Paul Dicker
22a0d40011 Add test for the size of chrono's main data types 2024-02-12 17:05:32 +01:00
Paul Dicker
d9d6b6352e Move Days to naive module 2024-02-12 16:30:37 +01:00
Paul Dicker
41be21eeac Move NaiveWeek to naive module 2024-02-12 16:30:37 +01:00
Paul Dicker
352392ba13 Add NaiveWeek::new 2024-02-12 16:30:37 +01:00
Paul Dicker
792dbd0e0b Split out test module to its own file 2024-02-12 16:30:37 +01:00
Paul Dicker
dd88b4b26a Move naive/date.rs to naive/date/mod.rs 2024-02-12 16:30:37 +01:00
Paul Dicker
3016c30014 Move cycle_to_yo and yo_to_cycle to naive::date module 2024-02-12 13:58:58 +01:00
Paul Dicker
6894b6fc39 Add Mdf::ordinal and Mdf::year_flags; remove Of type 2024-02-12 13:58:58 +01:00
Paul Dicker
f95a973c4b Change Mdf::from_of to Mdf::from_ol 2024-02-12 13:58:58 +01:00
Paul Dicker
4bb5f6124c Format IsoWeek comments 2024-02-12 13:58:58 +01:00
Paul Dicker
7c4b119161 Remove Of::flags, add NaiveDate::year_flags 2024-02-12 13:23:39 +01:00
Paul Dicker
7e5357736f Remove Of::new and basic functionality test for Of 2024-02-12 13:23:39 +01:00
Paul Dicker
3dbea44f84 Remove Of::weekday 2024-02-12 13:23:39 +01:00
Paul Dicker
583812d700 Change IsoWeek::from_yof to consuming ordinal and year_flags
remove `Of::isoweekdate_raw`
2024-02-12 13:23:39 +01:00
Paul Dicker
92b576b219 Move iso_week_from_yof to IsoWeek::from_yof 2024-02-12 13:23:39 +01:00
Paul Dicker
5a8b1e42b8 Mark format::Numeric and format::Fixed as non_exhaustive 2024-02-12 11:58:51 +01:00
Paul Dicker
5ba8ed1c90 Remove Of::ordinal 2024-02-12 11:45:28 +01:00
Paul Dicker
26746b81d0 Remove Of::with_ordinal 2024-02-12 11:45:28 +01:00
Paul Dicker
dd873d25df Remove Of::pred 2024-02-12 11:45:28 +01:00
Paul Dicker
1835cfcde2 Remove Of::succ 2024-02-12 11:45:28 +01:00
Paul Dicker
2e00a1ca0b Move MIN_YEAR and MAX_YEAR constants 2024-02-12 11:10:25 +01:00
Paul Dicker
b0f40bcedd Add description of NaiveDate internal format 2024-02-12 11:10:25 +01:00
Paul Dicker
e9be4fd8e9 Rename ymdf field to yof 2024-02-12 11:10:25 +01:00
Paul Dicker
ca10fea322 Remove DateImpl type alias 2024-02-12 11:10:25 +01:00
Paul Dicker
1cebe0cfda Run GitHub Actions on push to 0.5.x branch 2024-02-12 10:36:23 +01:00
Paul Dicker
dc19606265 Prepare 0.4.34 v0.4.34 2024-02-11 06:39:29 +01:00
Paul Dicker
58a2149a8e Add StrftimeItems::parse_to_owned 2024-02-10 20:02:54 +01:00
Paul Dicker
59eeb8c537 Add StrftimeItems::parse 2024-02-10 20:02:54 +01:00
Paul Dicker
79de122615 Add more documentation to StrftimeItems::new_with_locale 2024-02-10 20:02:54 +01:00
Paul Dicker
5b7cf85c53 Add more documentation to StrftimeItems::new 2024-02-10 20:02:54 +01:00