Debian Codegraph @

t/additional-tests-draft2020-12/format-date-time.json

raw
1 [
2 {
3 "description": "leap seconds",
4 "schema": {
5 "format": "date-time"
6 },
7 "tests": [
8 {
9 "description": "a valid date-time with a leap second, UTC",
10 "data": "1998-12-31T23:59:60Z",
11 "valid": true
12 },
13 {
14 "description": "a valid date-time with a leap second, with minus offset",
15 "data": "1998-12-31T15:59:60.123-08:00",
16 "valid": true
17 },
18 {
19 "description": "an invalid date-time with a leap second, UTC",
20 "data": "1998-12-30T23:59:60Z",
21 "valid": false
22 },
23 {
24 "description": "an invalid date-time with a leap second, with minus offset",
25 "data": "1998-12-30T15:59:60.123-08:00",
26 "valid": false
27 },
28 {
29 "description": "a valid date-time with a leap second, with negative half-hour offset",
30 "data": "1998-12-31T22:29:60.123-01:30",
31 "valid": true
32 },
33 {
34 "description": "a valid date-time with a leap second, with positive half-hour offset",
35 "data": "1999-01-01T01:29:60.123+01:30",
36 "valid": true
37 },
38 {
39 "description": "2021 is not a leap year",
40 "data": "2021-02-29T12:00:00Z",
41 "valid": false
42 },
43 {
44 "description": "2020 is a leap year",
45 "data": "2020-02-29T12:00:00Z",
46 "valid": true
47 },
48 {
49 "description": "2000 is a leap year",
50 "data": "2000-02-29T12:00:00Z",
51 "valid": true
52 },
53 {
54 "description": "1900 is not a leap year",
55 "data": "1900-02-29T12:00:00Z",
56 "valid": false
57 },
58 {
59 "description": "century year 0400 is a leap year",
60 "comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 400-year cycle boundary",
61 "data": "0400-02-29T12:00:00Z",
62 "valid": true
63 },
64 {
65 "description": "century year 2100 is not a leap year",
66 "comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — future century year",
67 "data": "2100-02-29T12:00:00Z",
68 "valid": false
69 }
70 ]
71 }
72 ]