Paul Dicker
|
fe4713a4f0
|
Make NaiveDateTime::and_utc const
|
2023-09-29 11:14:06 +02:00 |
|
Paul Dicker
|
a0d3800412
|
(Used in NaiveDate::timestamp* )
Make methods on `NaiveDateTime` const where possible
|
2023-09-29 11:14:06 +02:00 |
|
Paul Dicker
|
c8e3eb4ce1
|
Implement AddAssign and SubAssign
|
2023-09-29 10:50:41 +02:00 |
|
Paul Dicker
|
bd6573aebe
|
Use checked_add and checked_sub in Add and Sub impls
|
2023-09-29 10:50:41 +02:00 |
|
Léo Gaspard
|
a2820c4f7d
|
Add Duration::try_* builders
|
2023-09-29 10:50:41 +02:00 |
|
Paul Dicker
|
8018c32684
|
Rename Duration::nanos_mod_sec to subsec_nanos , make public
|
2023-09-29 10:50:41 +02:00 |
|
Paul Dicker
|
6d3a77dc5a
|
Derive Default for Duration .
|
2023-09-29 10:50:41 +02:00 |
|
Paul Dicker
|
4bbfa9ffe1
|
Fix quotes in docs.rs feature list
|
2023-09-29 10:50:14 +02:00 |
|
Paul Dicker
|
bb4e9b0358
|
Remove unnecessary feature gate
|
2023-09-28 17:56:07 +02:00 |
|
Paul Dicker
|
604b92a241
|
Convert manual documentation links
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
b7857baed2
|
Move SecondsFormat from datetime to format::formatting
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
5237de6e0a
|
Make round module public
(so we don't need to show it in the main documentation)
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
819dea0480
|
Local does not depend on the time crate
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
5da23657cc
|
Hide private macros
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
017b621033
|
Remove useless #[doc(no_inline)] from prelude module
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
295e9c8321
|
Tweaks to visibility in main documentation
|
2023-09-27 12:31:30 +02:00 |
|
Paul Dicker
|
22846c9df1
|
Inline write_rfc2822_inner , don't localize
|
2023-09-27 11:10:36 +02:00 |
|
Paul Dicker
|
e28f2afa70
|
Use overflowing_naive_local in map_local
This fixes out-of-range panics in all the `with_*` methods that use `map_local`.
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
e6580db095
|
Use overflowing_naive_local in methods that don't return DateTime
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
4ca5a5292f
|
Add overflowing_naive_local and NaiveDateTime::overflowing_add_offset
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
6f94e45c0e
|
Tests and nicer panic message for DateTime::naive_local
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
39773653e6
|
Add NaiveDate::{BEFORE_MIN, AFTER_MAX}
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
b72752fd41
|
Adjust MIN_YEAR and MAX_YEAR
|
2023-09-27 11:09:20 +02:00 |
|
Paul Dicker
|
068b4bd677
|
Add DateTime::to_utc
|
2023-09-27 11:08:35 +02:00 |
|
Paul Dicker
|
0032431491
|
Remove obsolete overflow check
|
2023-09-26 17:44:20 +02:00 |
|
Paul Dicker
|
cf62e4648c
|
Fix panic in default impl of TimeZone::from_local_datetime
|
2023-09-26 17:44:20 +02:00 |
|
Paul Dicker
|
652bd7842a
|
Document Add and Sub impls of DateTime
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
353a29e4ed
|
Consistently document Add and Sub impls of NaiveDateTime
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
ea45eeded7
|
Document Add and Sub impls of NaiveTime
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
e3091d1b3e
|
Consistently document Add and Sub impls of NaiveDate
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
78230395a6
|
Move doc comments from method to trait (for consistency)
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
483da3b834
|
Clamp std::time::Duration before converting to prevent panic
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
f0c62b4494
|
Use expect instead of unwrap in Add and Sub impls
|
2023-09-26 16:46:12 +02:00 |
|
Paul Dicker
|
be8f2fd31d
|
Update deny.toml
|
2023-09-26 15:05:40 +02:00 |
|
jtmoon79
|
e116f5c101
|
tests with date command set env LC_ALL
For tests calling `date` Unix tool, also set
environment variable `LC_ALL=c` to make more sure to
avoid locality problems.
|
2023-09-26 12:06:06 +02:00 |
|
Paul Dicker
|
d450b68b83
|
Use checked_(add|sub)_offset in Add and Sub impls of DateTime
|
2023-09-25 14:18:46 +02:00 |
|
Paul Dicker
|
b1473c4e39
|
Move Add and Sub impls for Fixedoffset to datetime modules
|
2023-09-25 14:18:46 +02:00 |
|
Paul Dicker
|
c836a1f93c
|
Move Add and Sub impls to naive::datetime
|
2023-09-25 13:21:48 +02:00 |
|
Paul Dicker
|
a49eb9d80f
|
Use checked_(add|sub)_offset in Add and Sub impls
|
2023-09-25 13:21:48 +02:00 |
|
Paul Dicker
|
3bcd73c684
|
Add NaiveDateTime::checked_(add|sub)_offset
|
2023-09-25 13:21:48 +02:00 |
|
Paul Dicker
|
0953e4a89c
|
Also report correct ordinal in test_date_bounds
|
2023-09-25 10:10:35 +02:00 |
|
Paul Dicker
|
b18e663a27
|
Fix *_DAYS_FROM_YEAR_0 calculation
|
2023-09-25 10:10:35 +02:00 |
|
Paul Dicker
|
a47e0e3c16
|
Move Add and Sub impls to naive::time module
|
2023-09-23 14:33:46 +02:00 |
|
Paul Dicker
|
00fa07baa1
|
Use overflowing_(add|sub)_offset in Add and Sub impls
|
2023-09-23 14:33:46 +02:00 |
|
Paul Dicker
|
b5cdcc66fb
|
Add NaiveTime::overflowing_(add|sub)_offset
|
2023-09-23 14:33:46 +02:00 |
|
Paul Dicker
|
4d28a89325
|
Remove format::{format_localized, format_item_localized}
|
2023-09-23 14:33:14 +02:00 |
|
Paul Dicker
|
68a141eba0
|
Don't make unstable-locales depend on alloc feature
|
2023-09-23 13:12:21 +02:00 |
|
Paul Dicker
|
bfc7b26239
|
Make std imply alloc feature
|
2023-09-23 13:12:21 +02:00 |
|
Paul Dicker
|
45f1a4d554
|
Add benchmark for DateTime::with_*
|
2023-09-23 12:46:32 +02:00 |
|
Paul Dicker
|
41e34aded4
|
Deprecate standalone format* functions
|
2023-09-22 13:35:37 +02:00 |
|