Time duration and difference library to extend Date functionality.
;// With millisecondsconst dt = someDurationInMS;// Or with difference between numbersconst dt = Delta;// Or with difference between Date objects:const dt = Delta;console;
durationInMS: number; getMilliseconds(): number; getSeconds(): number; getMinutes(): number; getHours(): number; getDays(): number; getWeeks(): number;
Contribution is welcome, however to save time and wasted work please create an issue with your suggested improvments.
Test are written with
chai. Tests can be run locally using:
Documentation is performed using
tsdocs. Once generated you can view them inside the generated local directory
npm run docs
Formatting is performed using prettier. The formatting is configured to run on commit, but if you wish to run it anyway:
npm run fmt