6.0 KiB
6.0 KiB
Constants
Time constants.
Usage
var constants = require( '@stdlib/constants/time' );
constants
Time constants.
var c = constants;
// returns {...}
HOURS_IN_DAY
: number of hours in a day.HOURS_IN_WEEK
: number of hours in a week.MILLISECONDS_IN_DAY
: number of milliseconds in a day.MILLISECONDS_IN_HOUR
: number of milliseconds in an hour.MILLISECONDS_IN_MINUTE
: number of milliseconds in a minute.MILLISECONDS_IN_SECOND
: number of milliseconds in a second.MILLISECONDS_IN_WEEK
: number of milliseconds in a week.MINUTES_IN_DAY
: number of minutes in a day.MINUTES_IN_HOUR
: number of minutes in an hour.MINUTES_IN_WEEK
: number of minutes in a week.MONTHS_IN_YEAR
: number of months in a year.SECONDS_IN_DAY
: number of seconds in a day.SECONDS_IN_HOUR
: number of seconds in an hour.SECONDS_IN_MINUTE
: number of seconds in a minute.SECONDS_IN_WEEK
: number of seconds in a week.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var constants = require( '@stdlib/constants/time' );
console.log( objectKeys( constants ) );