Comments (6)
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.
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.
Awesome, didn't realize gitlabhq was using stamp!
from stamp.
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.
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.
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)
- include Stamp not InstanceMethods HOT 1
- Problem with timezones in Rails HOT 3
- Wrong Date Presented HOT 7
- Drop support for Ruby 1.8.7 HOT 4
- Support CPAN/Time::Format-style directives HOT 4
- Strange output when using #stamp("29/01/2013") HOT 10
- Change "meridian" to "meridiem"
- Time Zone Support Broken HOT 8
- Alias #stamp method HOT 4
- implement templates with Temple
- Disambiguator doesn't sit within the Stamp module, polluting global namespace HOT 1
- "pm" doesn't work on 1.8.7/REE
- Add support for Rails i18n date/time formats HOT 1
- Idea: Suppress leading space for, e.g., "3:00pm" ? HOT 5
- Allow ordinal numbers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stamp.