Package Exports
- convert-seconds
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (convert-seconds) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
convert-seconds
Convert seconds to hours, minutes, seconds
Install
$ npm install --save convert-secondsUsage
Pass in seconds (as a number or string), and get an object in return:
var convert = require('convert-seconds');
convert(3661);
// => { hours: 1, minutes: 1, seconds: 1 }
convert(3661).hours;
// => 1
convert('3661').minutes;
// => 1
convert(3661).seconds;
// => 1License
MIT @ Michael Wuergler