1643 Commits

Author SHA1 Message Date
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
Paul Dicker
cc0139996f Inline format_inner 2024-04-04 07:26:11 +02:00
Paul Dicker
4947c90046 Factor out DelayedFormat::format 2024-04-04 07:26:11 +02:00
Paul Dicker
5c1c87c61d Pass date and time by value 2024-04-04 07:26:11 +02:00
Paul Dicker
080d623dd3 Factor out Fixed formatting 2024-04-04 07:26:11 +02:00
Paul Dicker
a36a45ad36 Factor out Numeric formatting 2024-04-04 07:26:11 +02:00
Paul Dicker
ffe27452c6 Merge datetime::test_*_json into their tests 2024-04-04 06:59:09 +02:00
Paul Dicker
e9849ed602 Merge naive::datetime::test_*_json into their tests 2024-04-04 06:59:09 +02:00
Paul Dicker
cba4baad32 Merge naive::time::test_*_json into their tests 2024-04-04 06:59:09 +02:00
Paul Dicker
cfe7b740ab Merge naive:📅:test_*_json into their tests 2024-04-04 06:59:09 +02:00
Jubilee Young
6c4e735675 Justify not using --all-features with rkyv 2024-03-30 15:01:40 +01:00
Jubilee Young
be62a7f116 Remove rustc-serialize feature
And docs and deny exceptions and...
2024-03-30 15:01:40 +01:00
Jubilee Young
6c86cd1560 Remove rustc-serialize from library 2024-03-30 15:01:40 +01:00
Paul Dicker
7d62045ec4 Prepare 0.4.37 v0.4.37 2024-03-27 12:42:39 +01:00
Paul Dicker
6857d00070 Hide re-export of LocalResult in docs 2024-03-27 12:42:39 +01:00
Paul Dicker
9e22e48d15 Swap MappedLocalTime and LocalResult type alias 2024-03-27 12:42:39 +01:00
Paul Dicker
ca3c3b6293 Prepare 0.4.36 v0.4.36 2024-03-26 17:36:07 +01:00
Paul Dicker
1850198da9 Revert TimeDelta deprecations 2024-03-26 17:36:07 +01:00
Paul Dicker
e05ba8b9c2 Add MappedLocalTime::and_then 2024-03-22 12:18:15 +01:00
Paul Dicker
3adfd88ce0 Main documentation: simplify links and reflow text 2024-03-22 11:03:25 +01:00
Paul Dicker
1e8df65f47 Rustfmt doc comments 2024-03-22 10:39:08 +01:00
Paul Dicker
1b57859782 Run doctests with alloc feature if possible 2024-03-22 10:39:08 +01:00
Paul Dicker
6f2c7ccabd Use different method to run feature-dependent doctests 2024-03-22 10:39:08 +01:00
Paul Dicker
61d54b5de8 Remove unnecessary "```ignore" 2024-03-22 10:39:08 +01:00
Paul Dicker
18328a8d9f Replace .and_local_timezone(Utc) with .and_utc() 2024-03-21 13:08:55 +01:00
Paul Dicker
28a46c9b2f Remove 'This can fail' documentation from NaiveDateTime::and_local_timezone 2024-03-21 13:08:55 +01:00
Paul Dicker
c370ef6a3b Simplify NaiveDate::diff_months 2024-03-21 13:08:55 +01:00
Paul Dicker
96644949a4 Simplify DateTime::date_naive 2024-03-21 13:08:55 +01:00
Paul Dicker
04eb6d346f Slightly improve serde documentation 2024-03-18 15:39:40 +01:00
Paul Dicker
c21b359c88 Turn expect macro into a function 2024-03-18 11:20:43 +01:00