inukshuk / edtf.js

Extended Date Time Format (ISO 8601-2 / EDTF) Parser for JavaScript
BSD 2-Clause "Simplified" License
66 stars 12 forks source link

unspecified dates ("1990-uu-uu") don't parse. #14

Closed workergnome closed 6 years ago

workergnome commented 6 years ago

As noted in http://www.loc.gov/standards/datetime/pre-submission.html#unspecified, "1990-uu-uu" is a valid EDTF date. However, when run through edtf.js, it throws a parse error.

inukshuk commented 6 years ago

The edtf.js parser is written for the upcoming ISO 8601 standard which will supercede the original EDTF (see the note all the way at the top of the page you linked to). In IS0 8601 the unspecified marker is 'X' not 'u'.