https://github.com/javiercejudo/runtime-to-seconds
Converts a string hh:mm:ss or mm:ss to seconds
https://github.com/javiercejudo/runtime-to-seconds
Last synced: about 2 months ago
JSON representation
Converts a string hh:mm:ss or mm:ss to seconds
- Host: GitHub
- URL: https://github.com/javiercejudo/runtime-to-seconds
- Owner: javiercejudo
- License: mit
- Created: 2016-01-17T04:01:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T12:30:57.000Z (over 9 years ago)
- Last Synced: 2025-03-14T23:15:24.263Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/runtime-to-seconds
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# runtime-to-seconds
[](https://travis-ci.org/javiercejudo/runtime-to-seconds)
[](https://coveralls.io/r/javiercejudo/runtime-to-seconds?branch=master)
[](https://codeclimate.com/github/javiercejudo/runtime-to-seconds)Converts a string `hh:mm:ss` to seconds
## Install
npm i runtime-to-seconds
## Usage
```js
var runtimeToSeconds = require('runtime-to-seconds');runtimeToSeconds('1:25:46'); // => 5146
```See [spec](test/spec.js).