Meet digit.js -
Just what you were looking for[Citation Needed]
New version! -> v0.3.0
- Fixed missing preceding zero for formatTime function with 12 hour time option enabled
- Changed timeIs function to formatTime and dateIs to formatDate, but the old names are still enabled, at least for this release
- Add formatTimeAmount (see more in the documentation!)
New to Digit.js?
Check out the getting started guideLooking for the docs?
Check out the documentationJust here for the code?
Here is is: the code
It is recommended you use the latest static version below, as the library is still in pre-release and APIs might change.
Do you want an older version?
here they are
v0.3.0 code
v0.2.1 code
v0.2.0 code
v0.1.1 code
docs