c17971a2d8
* syntax: add datetime validator (and interop tests) * syntax: improve datetime normalization * lexicon: stronger datetime validation (from syntax package) * syntax: make datetime syntax norm test more flexible * make fmt * datetime: docs, normalize and always variant * bsky replace toSimplifiedISOSafe with normalizeDatetimeAlways * more rigorous datetime parsing on record creation * handle negative dates * syntax: disallow datetimes before year 0010 * syntax: datetime normalization functions validate output --------- Co-authored-by: dholms <dtholmgren@gmail.com>
8 lines
250 B
Plaintext
8 lines
250 B
Plaintext
# superficial syntax parses ok, but are not valid datetimes for semantic reasons (eg, "month zero")
|
|
1985-00-12T23:20:50.123Z
|
|
1985-04-00T23:20:50.123Z
|
|
1985-13-12T23:20:50.123Z
|
|
1985-04-12T25:20:50.123Z
|
|
1985-04-12T23:99:50.123Z
|
|
1985-04-12T23:20:61.123Z
|