File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ Features:
10
10
- Supports +00:00 or -00:00 style time zone offsets
11
11
- Invalid strings throw errors.
12
12
- Delimiter notes:
13
- - Requires the ` T ` delimiter for Date and Time
14
- - Dates with 8 digits do not require ` - ` delimiters (all other dates require delimiters, e.g. ` YYYY-MM ` )
15
- - Times with 6 digits do not require ` : ` delimiters (all others times require delimiters, e.g. ` HH:II ` )
13
+ - * Requires* the ` T ` delimiter with DateTime strings
14
+ - Delimiters in dates (` - ` ) and times (` : ` ) are optional
16
15
17
16
Not supported (for RFC 9557 compatibility):
18
17
Original file line number Diff line number Diff line change @@ -43,19 +43,24 @@ export const VALID_TEST_CASES = `
43
43
2016-05-25T09:24:15.123-06:00
44
44
2016-05-25T09:24:15,123-06:00
45
45
46
- // delimiters optional WHEN full number of digits are supplied for date or time
46
+ // delimiters optional
47
47
20000107
48
48
20160525
49
49
50
+ 2016-0525
51
+ 201605-25
52
+ 20160525T09:2415
53
+ 20160525T0924:15
54
+
50
55
20160525T092415
51
56
20160525T092415.123
52
57
20160525T092415,123
53
58
20160525T0924
54
59
60
+ 20160525T09:24
55
61
20160525T09:24:15
56
62
20160525T09:24:15.123
57
63
20160525T09:24:15,123
58
- 20160525T09:24
59
64
60
65
2016-05-25T092415
61
66
2016-05-25T092415.123
You can’t perform that action at this time.
0 commit comments