JSPM

convert-seconds

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 537
  • Score
    100M100P100Q111633F
  • License MIT

Convert seconds to hours, minutes, seconds

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

Build Status

Install

$ npm install --save convert-seconds

Usage

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;
// => 1

License

MIT @ Michael Wuergler