GithubHelp home page GithubHelp logo

Year > 9999? about edtf.js HOT 3 CLOSED

retorquere avatar retorquere commented on June 20, 2024
Year > 9999?

from edtf.js.

Comments (3)

inukshuk avatar inukshuk commented on June 20, 2024 1

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...

from edtf.js.

inukshuk avatar inukshuk commented on June 20, 2024

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

from edtf.js.

SylvainBigonneau avatar SylvainBigonneau commented on June 20, 2024

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?

from edtf.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.