Dirkjan Ochtman
113777a22f
Upgrade windows-bindgen to 0.64
2025-09-26 11:14:29 +02:00
Dirkjan Ochtman
0f016846f1
Install extra components for lint workflow
...
Install rustfmt for workflows that call `cargo test`, to make sure
rustfmt is available for the `win_bindings` codegen test.
2025-09-26 09:59:34 +02:00
Dirkjan Ochtman
f3fd15f976
Bump version to 0.4.42
v0.4.42
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
5cf5603500
strftime: add regression test case
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
a6231701ee
strftime: simplify error handling
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
36fbfb1221
strftime: move specifier handling out of match to reduce rightward drift
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
7f413c363b
strftime: yield None early
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
9d5dfe1640
strftime: outline constants
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
e5f6be7db4
strftime: move error() method below caller
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
d516c2764d
strftime: merge impl blocks
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
0ee2172fb9
strftime: re-order items to keep impls together
2025-09-08 10:59:14 +02:00
Dirkjan Ochtman
757a8b0226
Upgrade to windows-bindgen 0.63
2025-09-08 09:39:44 +02:00
Benjamin Brittain
78c0fbcf18
Migrate to core::error::Error
...
Stabilized in rust 1.81, behind a feature flag so
as to not bump the current MSRV of 1.61.
2025-09-08 09:28:52 +02:00
dependabot[bot]
0813b2c994
Bump actions/setup-node from 4 to 5
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:27:03 +02:00
dependabot[bot]
0f22fbda3c
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 09:05:33 +02:00
Jason Owen
6aeea3ff5c
Add from_timestamp_secs
method to DateTime
...
Add a new single-argument function for creating a `DateTime` from a Unix
timestamp, to match `from_timestamp_micros`, `from_timestamp_millis`,
and `from_timestamp_nanos`.
Refactor existing code and examples to use
`DateTime::from_timestamp_secs` and `DateTime::from_timestamp_millis`
where possible.
Issue #1716 Suggestion: add DateTime::from_timestamp_secs function
2025-08-14 21:22:08 +02:00
Huliiiii
59d5f46f17
Add ?Sized
bound to related methods of DelayedFormat::write_to
2025-08-12 15:34:48 +02:00
Dirkjan Ochtman
b4b9aa580c
Apply suggestions from clippy 1.89
2025-08-08 17:04:30 +02:00
Piotr Findeisen
d43108cbfc
Convert NaiveDate to/from days since unix epoch
2025-07-21 10:57:27 +02:00
Piotr Findeisen
68fd4b67cf
Fix typo in a comment
2025-07-21 10:57:27 +02:00
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