Brennan Vincent
918003e7ee
Fix MSRV violation
2022-12-14 10:28:51 +01:00
Brennan Vincent
2f14b0c870
Test that from_timestamp_millis
corresponds to from_timestamp_opt
2022-12-14 10:28:51 +01:00
Dan Dixey
5312160ce2
Fix: Typ in docstrings
2022-11-25 14:08:40 -08:00
Eric Sheppard
ff370ae656
fix bug and add more test cases
2022-11-22 22:25:25 -08:00
Eric Sheppard
e7d4402853
make NaiveTime::MIN public
2022-11-23 13:07:54 +11:00
Eric Sheppard
1624fc32bd
Fix add and sub days implemention and test with dst timezone
...
This previously called the `.datetime` field on the datetime, however this is problematic as it is in UTC time. It now correctly uses the `.naive_local()` method to get the local time as a NaiveTime
2022-11-20 19:32:22 +01:00
Michael Seele
698d14795e
Add format_localized for chrono::naive::NaiveDate
2022-11-20 19:26:55 +01:00
xmo-odoo
ff9db15b09
Clarify out of range value for from_timestamp_opt
...
The limits on the secs count has to be hunted down to the bottom of
the readme / root document, which is a bit annoying when
e.g. migrating from the deprecated `from_timestamp` and wondering why
`from_timestamp_opt` is fallible.
The nsecs limits can be inferred from the rest of the text but
explicit is better than implicit.
2022-11-16 12:42:27 +01:00
Daniel Brotsky
e7eb35f1da
Fix doc on Days::new to refer to days, not months.
...
This fixes chronotope/chrono#871
2022-11-15 12:43:13 +01:00
Dirkjan Ochtman
9e5eb49838
Bump version to 0.4.23
v0.4.23
2022-11-12 05:09:20 +01:00
Eric Sheppard
dc4287a627
store hash of environment variable
2022-11-11 13:16:10 +01:00
Eric Sheppard
57908e918b
allow sharing of the allocated environment variable
2022-11-11 13:16:10 +01:00
Eric Sheppard
84f3c30d1e
move last_changed to the Cache
2022-11-11 13:16:10 +01:00
Eric Sheppard
8bc413936f
add bench for Local::now()
2022-11-11 13:16:10 +01:00
Dirkjan Ochtman
22b4d32498
Avoid use of deprecated API
2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
77317d5255
Deprecate usage of the Date<Tz> type
2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
7ba090d484
Add TimeZone::with_ymd_and_hms() helper method
...
We don't add `with_yo_and_hms()` and `with_isoywd_and_hms()` here,
instead recommending users can use `from_local_datetime()` with
a separately constructed `NaiveDateTime`.
2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
03165c8658
Move Date::years_since() implementation into NaiveDate
2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
645fca0c55
chore: apply clippy suggestions for 1.65
2022-11-09 11:47:50 +01:00
Alex Touchet
280208499e
Fix GitHub Actions badge
2022-11-08 11:09:09 +01:00
Conrad Ludgate
3e2f151613
remove dyn formatting from timezone (-74/78% on 2822/3339 respectively)
2022-10-26 15:59:01 +02:00
Conrad Ludgate
86325bc9aa
avoid int formatting as much as possible (net -70%/-68% on 2822/3339 respectively)
2022-10-26 15:59:01 +02:00
Conrad Ludgate
8a90e128f8
skip DelayedFormat for rfc2822 (net -55% improvement for 2822)
2022-10-26 15:59:01 +02:00
Conrad Ludgate
8706fe0862
extract out locales for a later change
2022-10-26 15:59:01 +02:00
Conrad Ludgate
66491783a2
skip DelayedFormat for rfc3339 (net -58% improvement)
2022-10-26 15:59:01 +02:00
Conrad Ludgate
64e082a5f8
use less intermediate formatting (-5% improvement)
2022-10-26 15:59:01 +02:00
Sergey Potapov
b9241c0666
Implement Arbitrary for Weekday
2022-10-18 13:07:01 +02:00
Sergey Potapov
8b654b5f28
Implement Arbitrary for Month and Months
2022-10-18 13:07:01 +02:00
Sergey Potapov
87b04c5b91
Implement Arbitrary for Duration
2022-10-18 13:07:01 +02:00
Sergey Potapov
44cee53a18
Implement Arbitrary for DateTime<Tz>
2022-10-18 13:07:01 +02:00
Sergey Potapov
7af32de08a
Implement Arbitrary for Date
2022-10-18 13:07:01 +02:00
Sergey Potapov
de57f5617a
Implement Arbitrary for timezones
2022-10-18 13:07:01 +02:00
Sergey Potapov
c879b18dbf
Tweak implementation of Arbitrary for NaiveDate and NaiveTime to make it infallible
2022-10-18 13:07:01 +02:00
Alex Sayers
2eda0f1a61
Optionally implement Arbitrary for Naive{Date,Time,DateTime}
2022-10-18 13:07:01 +02:00
Dirkjan Ochtman
eb1fae64fc
Make Mdf methods fallible in the face of invalid input
2022-10-16 20:52:08 +02:00
Dirkjan Ochtman
bb874851a0
Make Of methods fallible in the face of invalid ordinals
2022-10-16 20:52:08 +02:00
Eric Sheppard
4182d12c90
add backticks in docs
2022-10-16 13:48:53 +02:00
Eric Sheppard
f60893a0dc
update criterion version
2022-10-10 22:31:08 +11:00
Dirkjan Ochtman
7cd5e03ee4
Fix up internal calls to newly deprecated methods
2022-10-09 14:15:02 +02:00
Dirkjan Ochtman
71b5881824
Extract date value to avoid multi-line match scrutinee
2022-10-09 14:15:02 +02:00
Dirkjan Ochtman
a9b250764f
Deprecate methods that have an _opt() alternative
2022-10-09 14:15:02 +02:00
Qiu Chaofan
001b19c262
Support AIX's TZDB location
2022-09-28 12:18:59 +02:00
Dirkjan Ochtman
2068695b55
Remove test-release workflow
2022-09-26 14:55:36 +02:00
Eric Sheppard
7d1060e141
use --all-features when testing other timezones and rust_versions, test 1.38.0 by itself with less features
...
fix 1.38.0 tests
add back default features in rkyv
2022-09-26 12:47:29 +02:00
Eric Sheppard
9e1836cd49
remove old ci references and supporting files
2022-09-26 12:47:29 +02:00
Eric Sheppard
3421cbdeeb
extra imports due to powerset features check
2022-09-26 12:47:29 +02:00
Eric Sheppard
2474b02198
update check-docs
2022-09-26 12:47:29 +02:00
Eric Sheppard
c59235aca2
update cross-targets
2022-09-26 12:47:29 +02:00
Eric Sheppard
e2dca90c19
consolidate wasm, add wasm features check
2022-09-26 12:47:29 +02:00
Eric Sheppard
bbf5168f13
consolidate no_std
2022-09-26 12:47:29 +02:00