1685 Commits

Author SHA1 Message Date
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
Noisy
33aaebfc35 Update mod.rs 2024-12-05 21:33:54 +01:00
futreall
65c47f377d Update CHANGELOG.md 2024-12-02 11:35:10 +01:00
Dirkjan Ochtman
ca8232ff4e Update licenses for unicode-ident 1.0.14 2024-11-29 14:21:20 +01:00
Dirkjan Ochtman
1456fa0977 Apply suggestions from clippy 1.83 2024-11-29 14:21:20 +01:00
dependabot[bot]
1c7567b34d Bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 09:07:04 +01:00
Frank Elsinga
f9ffd6fbde add #[inline] to num_days 2024-11-11 11:00:41 +01:00
Kyle Huey
7974c60649 Fix comment. 2024-10-24 05:26:37 +00:00
Viktor Szépe
77d50b1fc1 Fix typos 2024-10-20 07:46:13 +00:00
Jonas Schäfer
771c0477bf Use Formatter::pad (instead of write_str) for Weekdays
That way, width, alignment and fill from the format string are
respected.

Fixes #1620.
2024-10-14 10:58:21 +00:00
Mirage Lyu
d8a177e4f5 Support ohos tzdata since oh35 2024-10-11 09:06:44 +00:00
DSeeLP
05a6ce68cf Derive PartialEq,Eq,Hash,Copy and Clone on NaiveWeek 2024-10-01 07:59:40 +00:00
Ihor Ranchynskyi
c8defc7766
impl serde::Serialize and serde::Deserialize for TimeDelta (#1599) 2024-09-16 12:10:29 +02:00
Kirill Ivanov
081c6482bc Test that NaiveWeek checked functions don't panic 2024-08-19 12:49:23 +02:00
Kirill Ivanov
f765936ee3 Add checked_days 2024-08-19 12:49:23 +02:00
Kirill Ivanov
ccb04bc449 Add checked_last_day 2024-08-19 12:49:23 +02:00
Kirill Ivanov
68afd5b407 Add checked_first_day 2024-08-19 12:49:23 +02:00
dependabot[bot]
37ec019f86 Bump EmbarkStudios/cargo-deny-action from 1 to 2
Bumps [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) from 1 to 2.
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](https://github.com/embarkstudios/cargo-deny-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 14:37:35 +02:00
Dirkjan Ochtman
50938ab454 deny: update config for 0.16 2024-08-05 14:30:35 +02:00
Dirkjan Ochtman
fb9eebc970 benches: add feature unstable-locales 2024-08-05 14:17:57 +02:00
Dirkjan Ochtman
b18c1c1d8e Fix line continuation in Parsed::to_datetime() 2024-08-05 14:17:57 +02:00
Marco Gorelli
1eb3174428 docs: document century cutoff for %y 2024-07-16 13:00:33 +02:00
dependabot[bot]
c46b18d088 Update windows-bindgen requirement from 0.57 to 0.58
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.57.0...0.58.0)

---
updated-dependencies:
- dependency-name: windows-bindgen
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 15:29:44 +02:00
Dirkjan Ochtman
4401f399ab Use environment secrets for Codecov token 2024-07-08 15:19:53 +02:00
Dirkjan Ochtman
2cec1d3a6b Add TimeDelta::{MIN, MAX} const values 2024-07-08 10:11:53 +02:00
Dirkjan Ochtman
e6f5d515cc Apply clippy suggestions from Rust 1.79 2024-07-08 10:11:53 +02:00
Sebastian Goll
51c2d4b5ef Fix typo in rustdoc of from_timestamp_nanos() 2024-06-13 10:22:44 +02:00
Behnam Esfahbod
de2f1f4cee native/date: Improve DelayedFormat doc re Panics 2024-06-11 09:25:56 +02:00
dependabot[bot]
2085627892 Update windows-bindgen requirement from 0.56 to 0.57
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.56.0...0.57.0)

---
updated-dependencies:
- dependency-name: windows-bindgen
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 09:22:40 +02:00
Kirill Zaborsky
865b0ad780 Fix micros (optional) limit in and_hms_micro_opt 2024-05-30 11:20:45 +02:00
frederikhors
f129a8ba35 Update mod.rs 2024-05-23 17:44:09 +02:00
frederikhors
0a058ea70d Fix format::strftime docs link 2024-05-23 17:44:09 +02:00
Dirkjan Ochtman
ce383862ff Remove obsolete weird feature guard 2024-05-23 13:19:47 +02:00
David
7e25ffb373 #1577: Changed years_since documentation to match its implementation 2024-04-29 14:06:58 +02:00
Paul Dicker
352a35203a Prepare 0.4.38 v0.4.38 2024-04-15 11:51:49 +02:00
Paul Dicker
46d44d6074 Manually implement Copy for DateTime if offset is Copy 2024-04-15 11:51:49 +02:00
dependabot[bot]
760eb660d3 Update windows-bindgen requirement from 0.55 to 0.56
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.55.0...0.56.0)

---
updated-dependencies:
- dependency-name: windows-bindgen
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 07:00:21 +02:00
David Herberth
391187fff3
Return error when rounding with zero duration 2024-04-09 12:56:27 +02:00
Moritz Oberhauser
ffc75e5705 Add TimeDelta::checked_mul and TimeDelta::checked_div 2024-04-08 16:04:31 +02:00