Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hms-time

stuartmemo6MIT0.2.2

All aboard the HMS Time - takes number of seconds and converts it to HH:MM:SS.SSS format.

time, seconds, web, audio

readme

HMS Time

Ahoy! All aboard the HMS Time! Got a lot of seconds you want converted into H:MM:SS.SSS (hours, minutes, seconds and milliseconds).

Works especially well with the Web Audio API.

Usage

var hmsTime = require('./index.js');

console.log(hmsTime(9059.1)); // spits out '2:30:59.100'