RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

stamp: Date and time formatting for humans

Format dates and times based on human-friendly examples, not arcane strftime directives, with stamp.

I got tired of looking up the strftime directives just about every time I’ve needed to format a date or time. The stamp method parses an example, such as “Jan 1, 1999 at 9:30 AM” and formats your date/time object accordingly.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in