constants
Exposes the low-level constants used by the date helpers (common durations, timestamp bounds, TheDate regular expression).
Interactive example
Content
minTimestamp/maxTimestampminTimeValue/maxTimeValuemillisecondsInOneDay,millisecondInOneWeek,millisecondInOneHour, etc.secondsInOneMinute,minutesInOneHour,hoursInOneDay,daysInOneWeek,monthsInOneYear.theDateRegex: regular expression that validatesTheDatestrings.theTimeRegex: regular expression that validatesTheTimestrings.
Usage
Use these constants for your business calculations (e.g., convert a number of days into milliseconds) or to check that a timestamp lies within JavaScript's supported limits.
See also
isSafeTimestamp– Runtime validation of a timestamptypes/timezone– Enum of time zones
