Skip to main content Link Search Menu Expand Document (external link)

date-time-constants overview

This module defines constants used by the CVGregorianDate, CVIsoDate and CVDateTime modules


Table of contents


Constants

COMMON_YEAR_MS

Duration of a normal year in milliseconds

Signature

export declare const COMMON_YEAR_MS: number

DAY_MS

Duration of a day in milliseconds

Signature

export declare const DAY_MS: number

FOUR_HUNDRED_YEARS_MS

Duration in milliseconds of a 400-year period that has a leap year every 4th year except the 100th year. But the 400th year is a leap year

Signature

export declare const FOUR_HUNDRED_YEARS_MS: number

FOUR_YEARS_MS

Duration in milliseconds of a four-year period containing a leap year

Signature

export declare const FOUR_YEARS_MS: number

HOUR_MS

Duration of an hour in milliseconds

Signature

export declare const HOUR_MS: number

HUNDRED_YEARS_MS

Duration in milliseconds of a 100-year period that has a leap year every 4th year except the 100th year

Signature

export declare const HUNDRED_YEARS_MS: number

LEAP_YEAR_MS

Duration of a leap year in milliseconds

Signature

export declare const LEAP_YEAR_MS: number

LONG_YEAR_MS

Duration of a long iso year in milliseconds

Signature

export declare const LONG_YEAR_MS: number

MAX_FULL_YEAR

Maximal usable year (ECMA-262)

Signature

export declare const MAX_FULL_YEAR: number

MAX_TIMESTAMP

Maximal usable timestamp (ECMA-262)

Signature

export declare const MAX_TIMESTAMP: 8640000000000000

MINUTE_MS

Duration of a minute in milliseconds

Signature

export declare const MINUTE_MS: number

MIN_FULL_YEAR

Minimal usable year (ECMA-262)

Signature

export declare const MIN_FULL_YEAR: number

MIN_TIMESTAMP

Minimal usable timestamp (ECMA-262)

Signature

export declare const MIN_TIMESTAMP: number

SECOND_MS

Duration of a second in milliseconds

Signature

export declare const SECOND_MS: 1000

SHORT_YEAR_MS

Duration of a short iso year in milliseconds

Signature

export declare const SHORT_YEAR_MS: number

WEEK_MS

Duration of a week in milliseconds

Signature

export declare const WEEK_MS: number