hhmm
v1.0.1hhmm
Convert a digit time string to milliseconds: '22:17'
→ 80220000
Installation
$ yarn add hhmm
Alternatively using npm:
$ npm install --save hhmm
Usage
const hhmm = require('hhmm')
// hours:minutes
hhmm('22:17')
//=> 80220000
// hours
hhmm('22')
//=> 79200000
// hours:minutes
hhmm('00:22')
//=> 1320000
License
MIT © Robin van der Vleuten