Settings

Theme

Show HN: DateKnight a datetime string formatting reference and translator

mrcoles.com

13 points by mrcoles 8 years ago · 3 comments

Reader

mrcolesOP 8 years ago

repo: https://github.com/mrcoles/dateknight

My goal was to not have to dig around for the unique documentation for whatever language/library I was using the moment to format a datetime string.

By unifying the codes across different languages, I was able to make a universal translator that could convert between any of the ones I had supported (and provide a structured autocomplete search too).

It’s not perfect, but hopefully makes some other folks’ lives easier!

I also made a convenience library on top of cheeriojs that supports all of their traversing methods via pseudo-classes in the query string: https://github.com/mrcoles/pseudo-cheerio

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection