"simplertime" time-of-day library
Parses and prints time values stored as Date or number (number of milliseconds since midnight).
- 1.6KB minified
- Parses many formats: 12, 1234, 12:34, 12:34pm, 12:34 PM, 12:34:56 pm, 12:34:56.789
- Understands UTC and local time
- Full documentation is in the source code (for IntelliSense).
Example
; var now = Date;console;console; var fmt = am: " in the morning" pm: " in the afternoon" evening: " at night";var later = now + ; // add 7 hours and 15 minutesconsole;console;console;console;
♥ This package was made to help people learn TypeScript & React.