Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Year > 9999? #9

Closed
retorquere opened this issue Oct 27, 2016 · 3 comments
Closed

Year > 9999? #9

retorquere opened this issue Oct 27, 2016 · 3 comments

Comments

@retorquere
Copy link

retorquere commented Oct 27, 2016

EDTF L1 (not the WD) accepts y170000002 as a valid date, how must I pass that to edtf.js? I've tried removing the leading y but that doesn't do it.

@inukshuk
Copy link
Owner

See section 4.6 years exceeding four digits. The syntax is now with a capital Y, i.e., Y170000002 or using exponential form Y17E7.

@SylvainBigonneau
Copy link

Shouldn't edtf('9999').next() return a Year then ?

Because right now it seems a little confusing that:

let date = edtf('9999').next()
let edtfString = date.edtf // '10000'
let dateCopy = edtf(edtfString)

triggers an error since "10000" is an incorrect EDTF notation, if I understand correctly?

@inukshuk
Copy link
Owner

inukshuk commented Nov 4, 2019

Hmm, that's a good question. I think .next() should probably still return a Date. But when formatted to a string it should return it as Y10000. This is definitely tricky...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants