You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| index.js | 4 years ago | |
| license | 4 years ago | |
| package.json | 4 years ago | |
| readme.md | 4 years ago | |
readme.md
sec 
Convert a time string to seconds:
'00:22:17'→1337
Install
$ npm install --save sec
Usage
var sec = require('sec');
// hours:minutes:seconds
sec('00:22:17');
//=> 1337
sec('22:17');
//=> 1337
sec('17');
//=> 17
License
MIT © Sindre Sorhus