@stdlib/constants-time
v0.3.2
Published
Time constants.
Downloads
1,358
Readme
Constants
Time constants.
Installation
npm install @stdlib/constants-time
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 ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.