1672 Commits

Author SHA1 Message Date
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
Clar Charr
f8cecbe57e Make Weekday::num_days_from public, rename to days_since.
Co-authored-by: Paul Dicker <paul@pitdicker.nl>
2024-04-06 22:07:44 +02:00
Paul Dicker
0cfc405d3e Optimize number formatting 2024-04-06 14:44:46 +02:00
Paul Dicker
74ba83ba27 Take pad by value 2024-04-06 14:44:46 +02:00
Paul Dicker
78e79dbabf Match on tuples in format_fixed 2024-04-06 14:44:46 +02:00
Paul Dicker
f3d76c7bb0 Match on tuples in format_numeric 2024-04-06 14:44:46 +02:00
Paul Dicker
8df4ad295f Inline weeks_from_* 2024-04-06 14:44:46 +02:00
Paul Dicker
6302158850 Always have a locale field 2024-04-06 14:44:46 +02:00
Paul Dicker
7f57dde63c Remove appveyor.yml 2024-04-04 11:13:23 +02:00
Paul Dicker
838b9dd62a Only package files needed for building and testing 2024-04-04 11:13:23 +02:00
Paul Dicker
8b1364f680 CI: Treat some features as mutually exclusive in cargo hack check 2024-04-04 09:08:02 +02:00
Paul Dicker
0b9b160d1e CI: Skip oldtime, rkyv and wasmbind in cargo hack check 2024-04-04 09:08:02 +02:00
Paul Dicker
fe43396283 Make format_fixed a method 2024-04-04 07:26:11 +02:00
Paul Dicker
06a6b01f3b Make format_numeric a method 2024-04-04 07:26:11 +02:00