Date and time formatting for humans

Jeremy Ashkenas (Underscore.js, CoffeeScript) posted a good idea to Twitter today:

I couldn't agree more. We've built tools to help ourselves conjure the correct incantations to get the format we want, but why not just show the computer what we want and let it do the pattern matching?

Jeremy wasn't the first person to have this idea. He wasn't even the first Jeremy to have this idea. Enter Stamp, which Jeremy Weiskotten dubs:

Date and time formatting for humans.

Stamp basically does exactly what we'd love it to do:

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

And to answer the $60,000 question: Yes, it even handles ordinal dates.

After learning of Stamp, Ashkenas challenged the JavaScript community to build something similar. I'll go one further: every language needs a library likes this. Build one and we'll help you get the word out.

News Films

Our little film studio focuses on telling developer-centric stories that need to be seen.

Beyond Code: Season 3 / GopherCon 2015

 
0:00 / 0:00