Clock

Time~ Clock

Clock class to transform a float represented time into different formats

Constructor

new Clock(time) → {Clock}

Example
let clock = new Clock(37.32454);
//=> clock = Clock { time: 37.32454, hours: 37, minutes: 19, seconds: 28 }
clock.hh_mm_ss(); //=> 37:19:28
clock.verbose_hrs_min(); //=> 37h 19m
clock.verbose_hrs_min_secs(); //=> 37h 19m 28s
Parameters:
Name Type Description
time number

Float number representing a time

Returns:
Type
Clock