Tinytime
tinytime
A straightforward date and time formatter in 800b.
Get it: npm install --save tinytime
tinytime exports a single function that returns a template object. This object has a single method, render, which
takes a Date and returns a string with the rendered data.
1 2 3 4 | |
Substitutions:
MMMM- Full Month (September)MM- Partial Month (Sep)Mo- Numeric Month (9)YYYY- Full Year (1992)YY- Partial Year (92)dddd- Day of the Week (Monday)DD- Day of the Month (24)Do- Day (24th)h- Hours - 12h formatH- Hours - 24h formatmm- Minutes (zero padded)ss- Seconds (zero padded)a- AM/PM
GIF FTW!
