Coder Social home page Coder Social logo

Comments (4)

JerrySievert avatar JerrySievert commented on July 17, 2024

i just tried on 0.6.3 and it is working there as well.

awesome news.

though there will be a release of another library in the not-too-distant future that will implement the niceties of date-utils without the monkeys.

from date-utils.

serby avatar serby commented on July 17, 2024

Cool.

I was about to make a pull request adding the formatting shown in the test below. Is it still worth it?

        assert.equal(date.toFormat('YYYY'), '2011');
        assert.equal(date.toFormat('YY'), '11');
        assert.equal(date.toFormat('M'), '1');
        assert.equal(date.toFormat('MM'), '01');
        assert.equal(date.toFormat('MMM'), 'Jan');
        assert.equal(date.toFormat('MMMM'), 'January');
        assert.equal(date.toFormat('D'), '1');
        assert.equal(date.toFormat('DD'), '01');
        assert.equal(date.toFormat('DDD'), 'Sat');
        assert.equal(date.toFormat('DDDD'), 'Saturday');
        assert.equal(date.toFormat('H'), '1');
        assert.equal(date.toFormat('HH'), '01');
        assert.equal(date.toFormat('HH24'), '13');
        assert.equal(date.toFormat('MI'), '11');
        assert.equal(date.toFormat('SS'), '41');

from date-utils.

JerrySievert avatar JerrySievert commented on July 17, 2024

absolutely - date-utils will continue to be supported and improved for as long as i am capable.

the other library will most likely share much of the same core as date-utils -- it's just a lot of people do not like that date-utils monkey-patches Date.

from date-utils.

serby avatar serby commented on July 17, 2024

I just tried in 0.4.12 and it doesn't work in the REPL.

It must be since 0.6 that it works.

from date-utils.

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.