timestamp-to-seconds
Convert a timestamp string to milliseconds.
'00:00:02,345'
→2345
Install
$ npm install --save timestamp-to-milliseconds
Usage
const milliseconds = ; ;//=> 59345 ;//=> 59000
API
timestampToMilliseconds(timestamp)
Returns the timestamp's total number of milliseconds.
timestamp
Type: string
The timestamp in the format of HH:MM:SS
or HH:MM:SS,000
that you want to convert to milliseconds.
License
MIT © Michael Wuergler