parse-overtime-date-pmb
v1.0.1
Published
Parse date/time timestamps where the hour number can exceed 23.
Downloads
59
Readme
parse-overtime-date-pmb
Parse date/time timestamps where the hour number can exceed 23.
Use cases
- In your activity tracker, your day only ends when you go to bed.
- Your video stream starts in the evening and extends beyond midnight.
API
This module exports one function:
parseOvertimeDate(d)
Where d
is a string that new Date()
could parse if the hour number
were in range 00..23.
There must be no colon (:
) in front of the hour number, because the colon
behind the hour number is the marker by which it will be identified.
Usage
see test.usage.mjs.
Known issues
- Needs more/better tests and docs.
License
ISC