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
Paul Dicker
d91b7d4a22
Add extra assertions to NaiveDate::from_yof
2024-03-15 11:38:19 +01:00
Paul Dicker
236b7adf32
Add DateTime::with_time()
2024-03-13 14:42:18 +01:00
Paul Dicker
1789183012
Extend documentation for MappedLocalTime
2024-03-12 13:27:43 +01:00
Paul Dicker
9511dd29e6
Rename LocalResult
to MappedLocalTime
, add alias
2024-03-12 13:27:43 +01:00
avoidalone
920e73b033
chore: fix some typos
...
Signed-off-by: avoidalone <wuguangdong@outlook.com>
2024-03-11 14:05:23 +01:00
Paul Dicker
248683338d
Avoid duplicate imports
2024-03-11 11:58:30 +01:00
Paul Dicker
1aabe844ed
Update windows-bindgen to 0.55
2024-03-11 10:22:08 +01:00
Moritz Oberhauser
c1cb93608e
Streamline test_date_checked_add_signed
2024-03-09 17:16:35 +01:00
Moritz Oberhauser
50c0e6b93c
Streamline test_date_signed_duration_since
2024-03-09 17:16:35 +01:00
Moritz Oberhauser
4ac0615ddb
Streamline test_date_(add/sub)_days
2024-03-09 17:16:35 +01:00
Paul Dicker
db1c8eff16
Guard against integer overflow in TzInfo::for_year
2024-03-08 14:54:48 +01:00
Paul Dicker
d40417fd1d
Improve error checking in naive_date_time_from_system_time
2024-03-08 14:54:48 +01:00
Dirkjan Ochtman
bcb53864f7
Remove duplicate test
2024-03-07 10:03:43 +01:00
Erick Tryzelaar
e79fe2187d
Remove unnessary Copy and Send impls
...
Fuchsia is doing an audit of chrono 0.4.34, and we noticed an unncessary
unsafe of `Send` for `DateTime`. While it's valid since `Tz::Offset` is
`Send`, and `NaiveDateTime` only has `u32` fields, there's a potential
hazard if `NaiveDateTime` ever grows unsendable fields (unlikely as that
is).
This (and the `Copy` impl) were added 9 years ago to fix #25 , which
stemmed from early versions of associate traits not working properly
with auto-traits. This has since been fixed, and is no longer necessary
with the MSRV 1.61.0.
2024-03-07 06:55:25 +01:00
Paul Dicker
31145976e1
CI: Lint benchmarks
2024-03-06 19:36:50 +01:00
Paul Dicker
2d2f1a9670
Correct timestamp deprecation notes
2024-03-06 15:54:17 +01:00
Paul Dicker
9fdb59638e
Prepare 0.4.35
v0.4.35
2024-03-06 14:25:00 +01:00
Paul Dicker
9e667b606e
Deprecate panicking TimeDelta
constructors
2024-03-06 14:04:55 +01:00
Paul Dicker
2c1b0bea94
Tests: replace TimeDelta::milliseconds
with try_milliseconds
2024-03-06 14:04:55 +01:00
Paul Dicker
2bf3302ce5
Tests: replace TimeDelta::seconds
with try_seconds
2024-03-06 14:04:55 +01:00
Paul Dicker
f93508ffd9
Tests: replace TimeDelta::minutes
with try_minutes
2024-03-06 14:04:55 +01:00
Paul Dicker
9fc931a394
Tests: replace TimeDelta::hours
with try_hours
2024-03-06 14:04:55 +01:00
Paul Dicker
9f23c08e10
Tests: replace TimeDelta::days
with try_days
2024-03-06 14:04:55 +01:00
Paul Dicker
e8f9b5e041
Tests: replace TimeDelta::weeks
with try_weeks
2024-03-06 14:04:55 +01:00
Paul Dicker
51a1aa27bd
Tests: use Days
type when it is more appropriate than TimeDelta
2024-03-06 14:04:55 +01:00
Paul Dicker
4251bd1eb1
Replace TimeDelta::seconds
with try_seconds
2024-03-06 14:04:55 +01:00
Paul Dicker
073c3c32f0
Replace TimeDelta::days
with try_days
2024-03-06 14:04:55 +01:00
Paul Dicker
383fcff56c
Use simplified resolve_week_date
2024-03-06 14:04:55 +01:00
Paul Dicker
d7e5853949
Use checked_add_days
in NaiveDateWeeksIterator
2024-03-06 14:04:55 +01:00