Module: time-units

Set of general purpose duration units
Version:
  • M2021-08-12
Author:
  • Louis A. de Fouquières https://github.com/Louis-Aime
License:
  • MIT 2016-2022
Source:

Members

(static, constant) timeUnits :object

Duration units in milliseconds
Type:
  • object
Properties:
Name Type Description
DAY_UNIT Number Number of milliseconds in a day.
HOUR_UNIT Number Number of milliseconds in an hour.
MINUTE_UNIT Number Number of milliseconds in a minute.
SECOND_UNIT Number Number of milliseconds in an second.
Default Value:
  • {"DAY_UNIT":86400000,"HOUR_UNIT":3600000,"MINUTE_UNIT":60000,"SECOND_UNIT":1000}
Source: