Paul Dicker
|
202af6cfda
|
Don't generate leap seconds that are not 60 in NaiveTime's Arbitrary impl
|
2023-09-12 17:27:04 +02:00 |
|
Paul Dicker
|
60283ab55c
|
Don't create strange leap seconds in tests
|
2023-09-12 17:27:04 +02:00 |
|
Paul Dicker
|
03a12c7995
|
Change example for leap seconds not on the minute boundary
|
2023-09-12 17:27:04 +02:00 |
|
Paul Dicker
|
a174b8afad
|
Deprecate timestamp_nanos
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
94ad32a40d
|
Switch tests to timestamp_nanos_opt
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
6302624c43
|
Use timestamp_nanos_opt in serialization; add panic warning
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
310b60a48c
|
Use timestamp_nanos_opt in duration_round and duration_trunc
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
08edc5ae93
|
Add DateTime::timestamp_nanos_opt
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
323f29aab1
|
Add NaiveDateTime::timestamp_nanos_opt
|
2023-09-12 14:50:10 +02:00 |
|
Paul Dicker
|
36ec37b1d1
|
Optimize NaiveDate::add_days for small values
|
2023-09-12 14:13:49 +02:00 |
|
Paul Dicker
|
d68f151b81
|
Add benchmark
|
2023-09-12 14:13:49 +02:00 |
|
Paul Dicker
|
084b021576
|
Format day in RFC 2822 without padding (#1272)
|
2023-09-11 10:34:27 +02:00 |
|
Charles Samborski
|
ccd3737bcc
|
Add DateTime::<Utc>::from_timestamp
This commit adds the new constructor `from_timestamp` to build a `DateTime<Utc>` from a UNIX timestamp.
Figuring out how to convert a timestamp into a `DateTime<Utc>` was a common issue:
- https://github.com/chronotope/chrono/issues/88
- https://github.com/chronotope/chrono/issues/200
- https://github.com/chronotope/chrono/issues/832
This commit should make `DateTime<Utc>` creation more discoverable and intuitive.
This commit respects the current convention of preferring fallible functions. It avoids however the `_opt` suffix as there is no panicking variant. See [this issue](https://github.com/chronotope/chrono/issues/815) for discussion about error handling and panics.
Closes https://github.com/chronotope/chrono/issues/832
|
2023-09-11 10:32:18 +02:00 |
|
Paul Dicker
|
90a9913cf8
|
CI: remove exception for __doctest feature in cargo hack check
|
2023-09-11 09:22:50 +02:00 |
|
Paul Dicker
|
155e9da327
|
Make dependabot target 0.4.x branch
|
2023-09-11 09:22:50 +02:00 |
|
Paul Dicker
|
85d4f7f590
|
Bump actions/checkout from 3 to 4
|
2023-09-11 09:22:50 +02:00 |
|
Paul Dicker
|
2960f2c454
|
Remove __doctest feature
|
2023-09-09 11:33:17 +02:00 |
|
Paul Dicker
|
77d0bec82d
|
Add more documentation about the RFC 2822 obsolete date format
|
2023-09-08 11:44:13 +02:00 |
|
Paul Dicker
|
101ca7e96d
|
Bump version to 0.4.30
v0.4.30
|
2023-09-07 16:46:53 +02:00 |
|
Dirkjan Ochtman
|
eee59e373a
|
Rewrite history sections for clarity and consistency
|
2023-09-07 13:14:53 +02:00 |
|
Paul Dicker
|
7387fe7aba
|
Add history of chrono and time 0.1 to main documentation
|
2023-09-07 12:28:01 +02:00 |
|
Paul Dicker
|
8509da4979
|
Apply Clippy suggestions for duration module
|
2023-09-07 10:28:10 +02:00 |
|
Paul Dicker
|
9d7fafe69b
|
Remove mention of oldtime from documentation
|
2023-09-07 10:28:10 +02:00 |
|
Paul Dicker
|
27ea7e9007
|
Rename oldtime module to duration
|
2023-09-07 10:28:10 +02:00 |
|
Paul Dicker
|
8f5becd277
|
Drop time 0.1 as optional dependency
|
2023-09-07 10:28:10 +02:00 |
|
Paul Dicker
|
f4aefc7f33
|
Clarify Timelike::num_seconds_from_midnight is a simple mapping
|
2023-09-06 17:04:30 +02:00 |
|
Paul Dicker
|
1903778a15
|
Add NaiveDate::leap_year
|
2023-09-06 17:02:01 +02:00 |
|
Truong Tan Dat
|
84334df989
|
Update readme
|
2023-09-06 16:20:56 +02:00 |
|
Paul Dicker
|
8509c25364
|
Bump version to 0.4.29
v0.4.29
|
2023-09-05 17:34:32 +02:00 |
|
Dirkjan Ochtman
|
d7444990b7
|
Add Discord link to README
|
2023-09-05 15:24:15 +02:00 |
|
Paul Dicker
|
2a96a795ca
|
Deprecated TimeZone::datetime_from_str
|
2023-09-05 14:23:14 +02:00 |
|
Paul Dicker
|
754ad18ed3
|
Remove remaining uses of TimeZone::datetime_from_str() from tests and docs
|
2023-09-05 14:23:14 +02:00 |
|
Paul Dicker
|
935e7b5953
|
Parse to NaiveDateTime in parse_rfc850 test
The format string doesn't contain any offset info.
|
2023-09-05 14:23:14 +02:00 |
|
Paul Dicker
|
d56049f52a
|
Move test_datetime_parse_from_str_with_spaces to naive::datetime
|
2023-09-05 14:23:14 +02:00 |
|
Paul Dicker
|
53b3f6bd57
|
Parse to NaiveDateTime in test_utc_datetime_from_str_with_spaces
|
2023-09-05 14:23:14 +02:00 |
|
Paul Dicker
|
5a6b2b40a7
|
Fix arbitrary string slicing in parse_rfc3339_relaxed
|
2023-09-05 09:16:15 +02:00 |
|
Paul Dicker
|
e39346e287
|
Move benchmarks to a separate crate
|
2023-09-03 07:08:09 +02:00 |
|
Paul Dicker
|
1b25e4717c
|
Include doctests for code coverage
|
2023-09-03 07:02:57 +02:00 |
|
Paul Dicker
|
ecfad9e108
|
Fix test_time_zone_from_posix_tz in environments without a tzdb
|
2023-09-01 11:55:12 +02:00 |
|
Paul Dicker
|
0fce0d85d3
|
CI: run tests for wasm32-wasi target
|
2023-09-01 11:55:12 +02:00 |
|
Paul Dicker
|
417fae8afc
|
CI: Remove cargo-hack from test_wasm
|
2023-09-01 11:55:12 +02:00 |
|
Paul Dicker
|
d92083d2ec
|
Disable SystemTime test on wasm32-wasi
|
2023-09-01 11:55:12 +02:00 |
|
Paul Dicker
|
bbd5be5592
|
CI: test i686 Linux
|
2023-09-01 11:55:12 +02:00 |
|
Paul Dicker
|
a1b9d0d931
|
CI: merge jobs timezones_linux and timezones_other
|
2023-09-01 11:55:12 +02:00 |
|
Bill Fraser
|
f9d231b575
|
Correct documentation for FromStr for Weekday and Month
The parsing specifiers were wrong.
|
2023-08-31 22:17:05 +02:00 |
|
Paul Dicker
|
18f1c9057b
|
Revert "add test_issue_866"
This reverts commit bf9f87638894dcfccb121a99653e29464be364bf.
|
2023-08-31 11:38:39 +02:00 |
|
Paul Dicker
|
243d26d994
|
Bump version to 0.4.28
v0.4.28
|
2023-08-30 21:28:33 +02:00 |
|
Paul Dicker
|
80946ed4e7
|
Fix test_type_types on 32-bit targets
|
2023-08-30 21:28:33 +02:00 |
|
Dirkjan Ochtman
|
b6a5244247
|
Add pitdicker as an author
v0.4.27
|
2023-08-29 15:50:40 +02:00 |
|
Dirkjan Ochtman
|
b5a9850aa1
|
Bump version to 0.4.27
|
2023-08-29 15:50:40 +02:00 |
|