1371 Commits

Author SHA1 Message Date
Paul Dicker
7f8b7ae031 Let write_rfc3339 take &mut impl Write 2023-07-24 14:04:17 +02:00
Paul Dicker
17d50a1b24 Let OffsetFormat::format take &mut impl Write 2023-07-24 14:04:17 +02:00
Paul Dicker
bdb10684e0 Import NaiveDateTime 2023-07-24 14:04:17 +02:00
Paul Dicker
080f7a0c66 Add test for deprecated methods 2023-07-24 13:22:30 +02:00
Paul Dicker
87bb2c8aeb Deprecate DateTime::{from_local, from_utc} 2023-07-24 13:22:30 +02:00
Paul Dicker
89cafd4cac Add DateTime::from_naive_utc_and_offset 2023-07-24 13:22:30 +02:00
Michael Kefeder
3a6ce44b13 impl Error trait for ParseMonthError 2023-07-20 13:49:14 +02:00
Paul Dicker
5255fc9d24 Verify bounds at compile time in test_datetime_is_send_and_copy 2023-07-18 17:07:13 +02:00
Paul Dicker
7e484fc46f Import alloc crate globally 2023-07-18 17:07:13 +02:00
Paul Dicker
29923331b2 Adjust formatting 2023-07-18 17:07:13 +02:00
Paul Dicker
e91c5a6392 Replace Vec with array 2023-07-18 17:07:13 +02:00
Paul Dicker
02df954a6c Don't import integer types 2023-07-18 17:07:13 +02:00
Paul Dicker
0c39758474 Use feature gates in src/oldtime.rs 2023-07-18 17:07:13 +02:00
Paul Dicker
34003e3be9 [CI] Test more no_std combinations 2023-07-18 17:07:13 +02:00
Paul Dicker
3993c02734 Make imports similar to main branch 2023-07-17 13:53:05 +02:00
Paul Dicker
90511c8840 Backport various changes to datetime/tests.rs 2023-07-17 13:53:05 +02:00
jtmoon79
c6a75156ba Add various tests for current parsing
Add more varying testing for most parsing functions.
Tests emphasize whitespace, literals, timezones, and timezone
delimiters (colons and whitespace).

Add tests for multiple-byte characters and combining characters
in and around data and parsing formats.

These tests are added to aid humans verifying the next commit that
changes parsing behavior.

Issue #660
2023-07-17 13:53:05 +02:00
Dirkjan Ochtman
13e7924767 Add branch policy explanation to PR template 2023-07-17 13:53:05 +02:00
LingMan
f4b3ebad63 Wrap all Dependabot ecosystem names in quotes
No functional change but makes this file self-consistent and consistent with the Dependabot docs.
2023-07-17 13:53:05 +02:00
Oleg V. Kozlyuk
f8029b5f35 Update per review notes 2023-07-17 13:53:05 +02:00
DarkWanderer
c50e5857da Adding automatic dependency management 2023-07-17 13:53:05 +02:00
Paul Dicker
4c18df43aa Remove needless any in feature gate 2023-07-15 08:29:10 +02:00
Paul Dicker
e5f322e26b Remove #![deny(dead_code)] 2023-07-15 08:20:02 +02:00
Paul Dicker
56c696766b Test some realistic values in test_tz_ascii_str 2023-07-07 14:04:48 +02:00
Paul Dicker
8599d7c5ce Add quote from man page 2023-07-07 14:04:48 +02:00
jtmoon79
677dbbeb3e Revert changes to TimeZoneName::new parser 2023-07-07 14:04:48 +02:00
Paul Dicker
20e7dd5f1d Convert macro to function 2023-07-07 12:40:51 +02:00
Paul Dicker
823e98190d Backport more checks in test_parse from main 2023-07-07 12:40:51 +02:00
Paul Dicker
838ba6813a Import Fixed variants 2023-07-07 12:40:51 +02:00
Paul Dicker
33c69f8d8a Split up test_parse 2023-07-07 12:40:51 +02:00
Paul Dicker
ee3d61b179 Rust issue #22255 is no longer relevant 2023-07-07 12:40:51 +02:00
Kevin Amado
26d03c9f50 const from_ymd_opt 2023-07-06 17:29:48 +02:00
Paul Dicker
ac802520f7 Clarify nanosecond formatting specifier doc 2023-07-06 09:06:12 +02:00
Paul Dicker
dfd3cf5e50 Make %r use locale's 12 hour clock time 2023-07-04 19:59:09 +02:00
Paul Dicker
3c50b428a9 Update pure-rust-locales to 0.6 2023-07-04 19:59:09 +02:00
scarf
3b49eb6e43 test: locale's datetime and 12 hour clock time
`%c`: did not take account of `%x` and `%X`
`%r`: did not use locale's format and used `%I:%M:%S %p`
2023-07-04 19:59:09 +02:00
Paul Dicker
7711690161 Also run integration tests with no_std on CI 2023-07-04 11:44:33 +02:00
Paul Dicker
bd23f5b437 Require clock feature for wasm tests 2023-07-01 16:33:22 +02:00
Paul Dicker
7cc0ca8c8b Require clock and std feature for dateutils tests 2023-07-01 16:33:22 +02:00
Paul Dicker
55dde4a365
Merge pull request #1161 from pitdicker/parallel_verify_against_date
Parallelize `try_verify_against_date_command`
2023-07-01 07:07:09 +02:00
Paul Dicker
e0e430356e
Merge pull request #1082 from pitdicker/offset_formatting_1
Flexible offset formatting [1/3]
2023-06-30 23:03:05 +02:00
Paul Dicker
edf413d07e Rustfmt 2023-06-30 22:50:19 +02:00
Paul Dicker
29019fbf8b Test offset formatter 2023-06-30 22:50:19 +02:00
Paul Dicker
3dda28cffd New offset formatter OffsetFormat 2023-06-30 22:50:16 +02:00
Paul Dicker
182b50e152
Merge pull request #1160 from pitdicker/formatting_without_display
Remove `Tz::Offset: Display` requirement from `DateTime::to_rfc*`
2023-06-30 22:09:56 +02:00
Paul Dicker
0d09acfdad Parallelize try_verify_against_date_command 2023-06-30 22:04:35 +02:00
Paul Dicker
ea41eba87f Remove Tz::Offset: Display requirement from DateTime::to_rfc* 2023-06-30 20:48:28 +02:00
Paul Dicker
d9288904d3
Merge pull request #1159 from pitdicker/no_test_feature_cfg
Feature gate tests instead of methods
2023-06-30 12:11:55 +02:00
Paul Dicker
72e1fba0d2 Make formatting only available with alloc or std feature, not with test 2023-06-30 11:59:01 +02:00
Paul Dicker
697f5d7d81 Require clock feature for test_decodable_json import 2023-06-30 11:59:01 +02:00