constant-time
v1.0.0
Published
Useful constants to be used in a project, see list below, if you spot a mistake, feel free to open a PR, or submit an issue
Downloads
1
Readme
Constant-time
Useful constants to be used in a project, see list below, if you spot a mistake, feel free to open a PR, or submit an issue
{
MILLISECOND: 0.001,
MILLISECONDS_PER_SECOND: 1000,
SECONDS_PER_MINUTE: 60,
SECONDS_PER_HOUR: 3600,
SECONDS_PER_DAY: 86400,
MINUTES_PER_HOUR: 60,
MINUTES_PER_DAY: 1440,
HOURS_PER_DAY: 24,
DAYS_PER_WEEK: 7,
DAYS_PER_YEAR: 365,
DAYS_PER_LEAP_YEAR: 366,
MONTHS_PER_YEAR: 12,
DAYS_PER_AVERAGE_MONTH: 30,
MAX_DAYS_PER_MONTH: 31,
LOWEST_DAYS_PER_MONTH: 28,
DAYS_PER_LEAP_MONTH: 29,
MILLISECONDS_PER_MINUTE: 60000,
MILLISECONDS_PER_DAY: 86400000,
MILLISECONDS_PER_HOUR: 3600000,
MILLISECONDS_PER_WEEK: 604800000,
MILLISECONDS_PER_YEAR: 31556736000,
MILLISECONDS_PER_NORMAL_YEAR: 31536000000,
MILLISECONDS_PER_LEAP_YEAR: 31622400000,
MILLISECONDS_PER_DECADE: 315567360000,
MILLISECONDS_PER_HALF_YEAR: 15778368000,
MILLISECONDS_PER_AVERAGE_MONTH: 2629728000
}