timestamp-to-seconds

0.0.2 • Public • Published

timestamp-to-seconds Build Status

Convert a timestamp string to seconds. '00:01:02'62

Install

$ npm install --save timestamp-to-seconds

Usage

const timestampToSeconds = require('timestamp-to-seconds');
 
timestampToSeconds('01:02:03');
//=> 3725

Note: If you pass in a timestring in the format of 00:00:00,000, the comma-separated milliseconds value will be ignored.

API

timestampToSeconds(timestamp)

Returns the timestamp's total number of seconds.

timestamp

Type: string

The timestamp in the format of HH:MM:SS that you want to convert to seconds.

License

MIT © Michael Wuergler

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    13
  • 0.0.1
    0

Package Sidebar

Install

npm i timestamp-to-seconds

Weekly Downloads

13

Version

0.0.2

License

MIT

Last publish

Collaborators

  • radiovisual