ldm0
23c132fc4f
Fix OpenHarmony's local timezone fetching and tzdata
parsing
2025-07-08 16:51:28 +02:00
Dirkjan Ochtman
9245a8f38f
Apply suggestions from clippy 1.88
2025-06-27 10:00:40 +02:00
Dirkjan Ochtman
bab97905cc
Upgrade to windows-bindgen 0.62
2025-06-16 11:11:12 +02:00
Arjun Ramesh
1762c71777
Fix cfgs for wasm32-linux
support
2025-06-05 10:24:17 +02:00
Chris Leach
2e1cd2f5fa
Fix incorrect parsing of fixed-length second fractions ( #1705 )
...
Co-authored-by: Chris Leach <chris.leach@garrison.com>
2025-06-03 13:48:36 +02:00
Ohad Lutzky
3b4af71f0b
Add warning about MappedLocalTime and wasm
...
Warns about https://github.com/chronotope/chrono/issues/1701 .
2025-05-14 10:43:45 +02:00
Tilman
c5c22a357d
Fix wrong amount of micro/milliseconds
2025-05-08 10:59:30 +02:00
misha
361b9fc61e
Add fuzzer for DateTime::parse_from_str
2025-05-04 19:54:46 +02:00
Dirkjan Ochtman
d1de1d95ea
Bump version to 0.4.41
v0.4.41
2025-04-29 10:40:34 +02:00
Jeremy Smart
e2bd1d1d67
Add support for lenient format strings ( #1693 )
2025-04-11 08:38:40 +02:00
Dirkjan Ochtman
2c95b0aca8
Tweak expression to avoid repetition
2025-04-09 13:29:05 +02:00
Nicolas Boichat
ebeef99426
TimeZone::from_posix_tz: Treat empty TZ variable as UTC
...
This is not technically POSIX, but glibc and musl behave that way:
e.g. `TZ= date` returns a UTC date.
2025-04-05 19:56:53 +02:00
Dirkjan Ochtman
dc068f0373
Tweak style on NaiveWeek fixes
2025-04-04 11:16:26 +02:00
splashling
b267a4fe90
Implemented consistent Hash and Eq trait for NaiveWeek
2025-04-04 10:58:56 +02:00
Dirkjan Ochtman
7c0bd136d6
Apply suggestions from clippy 1.86
2025-04-03 17:04:04 +02:00
Dirkjan Ochtman
104cdc73cb
Bump MSRV to 1.62
2025-04-03 17:04:04 +02:00
Dirkjan Ochtman
6a853015b7
Upgrade to windows-bindgen 0.61
2025-03-24 10:51:58 +01:00
Dirkjan Ochtman
265c79b2a5
Tweak WeekdaySet method order
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
57567b3e56
Tweak WeekdaySet docs
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
97d6c63733
Privatize WeekdaySetIter fields
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
64c65a9256
Rename WeekdaySet::iter_from() to iter()
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
4094865116
Remove Not impls for WeekdaySet and Weekday
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
cac4e8cf8d
Move WeekdaySet constructors to the top
2025-03-23 10:21:18 +01:00
Dirkjan Ochtman
cac71f3f4d
Rename weekdays module to weekday_set
2025-03-23 10:21:18 +01:00
Ruslan Fadeev
4f4e95bee8
add WeekdaySet - a collection of Weekday
2025-03-23 09:40:30 +01:00
McKayla Washburn
39fb201c08
Add num_days_in_month
method to Datelike
trait
2025-03-17 16:16:33 +01:00
jimmycathy
7ebf64c2d1
chore: fix some comments
...
Signed-off-by: jimmycathy <clonecode@outlook.com>
2025-03-16 07:11:06 +01:00
Georges Goetz
fa957cc8dc
Implement utility functions for converting TimeDelta to fractional seconds.
...
Add `as_seconds_f64` and `as_seconds_f32` methods to `TimeDelta` for converting durations to a fractional number of seconds, with single or double precision.
2025-03-01 09:39:52 +01:00
Georges Goetz
cc6801d3dc
Group subsec duration methods with their corresponding whole methods.
...
This makes for more logical grouping of the methods, and opens up a good landing spot for `as_seconds_f32` and `as_seconds`f64` next to `num_seconds`.
2025-03-01 09:39:52 +01:00
Robert Bastian
2115206bc3
Deprecate NaiveDateTime::UNIX_EPOCH
2025-02-27 20:10:13 +01:00
Georges Goetz
042109f4f8
Add subsec_millis and subsec_micros methods for TimeDelta.
...
Co-authored-by: Micha White <botahamec@outlook.com>
2025-02-27 18:50:14 +01:00
Georges Goetz
f0f807d1b5
Improve documentation for subsec_nanos() and add a test for the method.
...
Co-authored-by: Micha White <botahamec@outlook.com>
2025-02-27 18:50:14 +01:00
Dirkjan Ochtman
2b7a28ebe9
Bump version to 0.4.40
v0.4.40
2025-02-26 09:32:04 +01:00
Nicolas Boichat
6d29c8abe7
Add quarter (%q) date string specifier
...
GNU date supports %q as a date string specifier. This adds
support for that in chrono.
This is needed by uutils/coreutils for compability.
2025-02-25 16:18:20 +01:00
Dirkjan Ochtman
07216ae8fd
Upgrade to windows-bindgen 0.60
2025-02-24 18:00:00 +01:00
Dirkjan Ochtman
bf1973ccc7
Use similar-asserts to show bindgen diff
2025-02-24 18:00:00 +01:00
Dirkjan Ochtman
d0f8b599b7
Restrict MSRV to check --lib
2025-02-24 18:00:00 +01:00
Dirkjan Ochtman
1f345fd7f9
Switch to 2024 idiom
2025-02-21 11:20:55 +01:00
Dirkjan Ochtman
7f6cf5e504
Switch to 2024 style
2025-02-21 11:20:55 +01:00
Dirkjan Ochtman
11d227a22b
Apply suggestions from clippy 1.85
2025-02-21 11:20:55 +01:00
AVee
15e287b4fb
Use NaiveDateTime for internal tz_info methods. ( #1658 )
...
This replaces passing a timestamp and year to several internal functions with
passing a NaiveDateTime, making the function signature slightly clearer. The
values originated from in the a NaiveDateTime in first place, so it basically
just postpones the conversion.
Co-authored-by: Arjan <arjan@xldata.nl>
2025-02-18 10:54:53 +01:00
Sam Folorunsho
8317e7ca41
docs: fix minor typo
2025-02-15 18:18:07 +01:00
Maxim Evtush
7cdca4b006
Update LICENSE.txt
2025-01-29 10:38:00 +01:00
Steven Tang
4c42ee5ceb
Expose write_to
for DelayedFormat
...
Request for #1649
- renamed format to write-to and made it public.
- added unittests
- added benchmarks to compare and show `Display` is slower than `write_to` in that
specific use case.
2025-01-23 17:02:24 +01:00
MagnumT
5f2f5a8332
Feature/round_up method on DurationRound trait ( #1651 )
2025-01-20 10:21:13 +01:00
Dirkjan Ochtman
82bacb85bd
wasm32-wasi was renamed to wasm32-wasip1
...
cargo-wasi seems unmaintained and does not support the new target.
2025-01-10 10:27:49 +01:00
Dirkjan Ochtman
12a814f860
Add weekly scheduled CI runs
2025-01-10 10:27:49 +01:00
Kenny Kerr
97f758f46d
Update Windows dependencies
2025-01-07 20:34:23 +01:00
Dirkjan Ochtman
07a42f9f49
Add Month::num_days()
2025-01-06 14:40:48 +01:00
Dirkjan Ochtman
8b863490d8
Bump version to 0.4.39
v0.4.39
2024-12-09 11:06:20 +01:00