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
Eric Sheppard
2827c22762
split test job into timezones, timezones linux, rust versions and powerset features check
2022-09-26 12:47:29 +02:00
Eric Sheppard
eb82ae603d
adjust lint workflow
2022-09-26 12:47:29 +02:00
Eric Sheppard
cb073a0db7
move test against date command to integration tests
2022-09-26 12:47:29 +02:00
Dirkjan Ochtman
147089b78f
Run CI on PRs to 0.4.x branch
2022-09-19 15:36:22 +02:00
Dirkjan Ochtman
f90a0ffb98
Deduplicate logic in from_timestamp_millis()
2022-09-19 15:36:22 +02:00
Pavel Pscheidl
926f7bf288
NaiveDateTime::from_timestamp_millis(_opt)
...
Construct NaiveDateTime from millis since epoch
2022-09-19 15:36:22 +02:00
Eric Sheppard
42ca8ca88d
duplicate add/sub days tests
2022-08-29 10:57:07 +02:00
Eric Sheppard
9a2ba95388
to -> from
2022-08-29 10:57:07 +02:00
Eric Sheppard
181b083647
add/sub Days
...
docs fixes
improve checked impls
2022-08-29 10:57:07 +02:00
Dirkjan Ochtman
2162dd7ca6
Remove extensive code examples from README
2022-08-27 15:51:04 +02:00
Dirkjan Ochtman
9c4604c0f8
Make the changelog historical from now on
2022-08-27 15:51:04 +02:00
René Kijewski
17d8c2af86
Update CHANGELOG
2022-08-22 20:26:38 +02:00
René Kijewski
e1b2675cbf
Update documentation test on CI
2022-08-22 20:26:38 +02:00
René Kijewski
16b2ae4156
Add feature documentation for docs.rs
...
This way the documentation will thell user which feature(s) are needed
to use a function, trait, etc. docs.rs display the information like
> Available on crate feature `serde` only.
2022-08-22 20:26:38 +02:00
René Kijewski
5b1b812a74
Feature is already implied
2022-08-22 20:26:38 +02:00