Skip to content

Commit

Permalink
syntax: more datetime examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Feb 25, 2025
1 parent dd179c3 commit 3db0e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atproto/syntax/testdata/datetime_parse_invalid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
1985-04-12T25:20:50.123Z
1985-04-12T23:99:50.123Z
1985-04-12T23:20:61.123Z

# ISO-8601, but normalizes to a negative time
# TODO: 0000-01-01T00:00:00+01:00
-000001-12-31T23:00:00.000Z
6 changes: 6 additions & 0 deletions atproto/syntax/testdata/datetime_syntax_valid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@
1985-04-12T23:20:50.1234567890Z
1985-04-12T23:20:50.12345678901Z
1985-04-12T23:20:50.123456789012Z

# extreme but currently allowed
0010-12-31T23:00:00.000Z
1000-12-31T23:00:00.000Z
1900-12-31T23:00:00.000Z
3001-12-31T23:00:00.000Z

0 comments on commit 3db0e58

Please sign in to comment.