Giter Club home page Giter Club logo

Comments (6)

jeremyw avatar jeremyw commented on July 17, 2024

Nice catch. The day-of-month disambiguation could probably be a little better. Currently, example values 28-31 disambiguate as day, so this works:

ruby-1.9.2-head :008 > date.stamp("28 Aug 2011, 11:15pm")
 => "12 Nov 2011, 12:00am" 

from stamp.

fingermark avatar fingermark commented on July 17, 2024

Ha. Yeah, just realized that. Thanks for the tip. I suggested 31 Aug 2011 for a quick fix for gitlabhq, which uses stamp. Thanks for the quick reply.

from stamp.

jeremyw avatar jeremyw commented on July 17, 2024

Awesome, didn't realize gitlabhq was using stamp!

from stamp.

 avatar commented on July 17, 2024

This is really cool. Wonder if Standard Ruby would accept it.

I myself prefer the notation:

DD.MM.YYYY

And I also prefer 24 hours notation.

from stamp.

jeremyw avatar jeremyw commented on July 17, 2024

Thanks @shevegen. I don't like DD, MM, YYYY, mainly because it's not clear how to represent day of week names (full or abbreviated), month names (full or abbreviated), or whether MM means month or minutes.

from stamp.

ramnathv avatar ramnathv commented on July 17, 2024

Pretty cool stuff @jeremyw . Inspired by your ruby gem, I am in the process of creating a package for R called intellidate. I am using the examples in the issues section of your repository to stress test my code, and that is working well.

from stamp.

Related Issues (16)

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.