seconds-to-timestamp
v0.0.1 convert format seconds timestamp
seconds-to-timestamp
Convert seconds to HH:MM:SS
Getting started
Install
npm install seconds-to-timestamp
Usage
import secondsToTimestamp from 'seconds-to-timestamp';
secondsToTimestamp(4321);
//=> '01:12:01'
API
secondsToTimestamp(seconds)
seconds
Type: number
Converted the seconds to milliseconds by multiplying them by 1000
.
Licence
MIT © Johnie Hjelm
npm i [email protected]
Metadata
- MIT
- ^12.20.0 || ^14.13.1 || >=16.0.0
- Johnie Hjelm
- released 6/30/2022