@types/time-constants
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/time-constants

Summary

This package contains type definitions for time-constants (https://github.com/jimhigson/time-constants#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/time-constants.

index.d.ts

export = time_constants;

declare const time_constants: {
    MILLISECONDS_PER_SECOND: number;
    SECONDS_PER_MINUTE: number;
    MINUTES_PER_HOUR: number;
    HOURS_PER_DAY: number;
    DAYS_PER_WEEK: number;
    MONTHS_PER_YEAR: number;

    /**
     * Milliseconds in a second
     */
    SECOND: number;
    /**
     * Milliseconds in a minute
     */
    MINUTE: number;
    /**
     * Milliseconds in a hour
     */
    HOUR: number;
    /**
     * Milliseconds in a day
     */
    DAY: number;
    /**
     * Milliseconds in a week
     */
    WEEK: number;
    /**
     * Milliseconds in a year(365.24 days)
     */
    YEAR: number;
    /**
     * Milliseconds in a year(365 days)
     */
    NORMAL_YEAR: number;
    /**
     * Milliseconds in a leap year(366 days)
     */
    LEAP_YEAR: number;
    /**
     * Milliseconds in 10 years(1 year = 365.24)
     */
    DECADE: number;
    /**
     * Milliseconds in 1/2 years(1 year = 365.24)
     */
    HALF_YEAR: number;
    /**
     * Milliseconds in 1/12 years(1 year = 365.24)
     */
    AVERAGE_MONTH: number;

    /**
     * +100,000,000 days, the min and max dates allowed in ECMA Script.
     *
     * @see http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.1
     */
    MAX_DATE: Date;
    /**
     * -100,000,000 days, the min and max dates allowed in ECMA Script.
     *
     * @see http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.1
     */
    MIN_DATE: Date;
};

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Libin Varghese.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/time-constants

Weekly Downloads

1,593

Version

1.0.2

License

MIT

Unpacked Size

5.5 kB

Total Files

5

Last publish

Collaborators

  • types