Date class that adds micro and nanoseconds.
Datenew HighResDate(): HighResDateHighResDatenew HighResDate(value: string | number): HighResDateHighResDatenew HighResDate(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): HighResDateCreates a new Date.
year: numberThe full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.monthIndex: numberThe month as a number between 0 and 11 (January to December).date?: numberThe date as a number between 1 and 31.hours?: numberMust be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.minutes?: numberMust be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.seconds?: numberMust be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.ms?: numberA number from 0 to 999 that specifies the milliseconds.HighResDatenew HighResDate(value: string | number | Date): HighResDateHighResDateparse(s: string): numberParses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
s: stringA date stringnumberUTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): numberReturns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
year: numberThe full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.monthIndex: numberThe month as a number between 0 and 11 (January to December).date?: numberThe date as a number between 1 and 31.hours?: numberMust be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.minutes?: numberMust be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.seconds?: numberMust be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.ms?: numberA number from 0 to 999 that specifies the milliseconds.numberUTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): numberReturns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
year: numberThe full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.monthIndex?: numberThe month as a number between 0 and 11 (January to December).date?: numberThe date as a number between 1 and 31.hours?: numberMust be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.minutes?: numberMust be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.seconds?: numberMust be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.ms?: numberA number from 0 to 999 that specifies the milliseconds.numbernow(): numberReturns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC).
numbergetMicroseconds(): undefined | numberundefined | numbergetNanoseconds(): undefined | numberundefined | numbertoJSON(): anyanydateToString(): stringstringtimeToString(): stringstringsetLocalTime(resolution: number, secondsInDay: number, subSecond: number): voidvoidsetUtcTime(resolution: number, secondsInDay: number, subSecond: number): voidvoidtoString(): stringReturns a string representation of a date. The format of the string depends on the locale.
stringtoDateString(): stringReturns a date as a string value.
stringtoTimeString(): stringReturns a time as a string value.
stringtoLocaleString(): stringReturns a value as a string value appropriate to the host environment's current locale.
stringtoLocaleString(locales?: string | string[], options?: DateTimeFormatOptions): stringConverts a date and time to a string by using the current or specified locale.
locales?: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringtoLocaleString(locales?: LocalesArgument, options?: DateTimeFormatOptions): stringConverts a date and time to a string by using the current or specified locale.
locales?: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringtoLocaleDateString(): stringReturns a date as a string value appropriate to the host environment's current locale.
stringtoLocaleDateString(locales?: string | string[], options?: DateTimeFormatOptions): stringConverts a date to a string by using the current or specified locale.
locales?: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringtoLocaleDateString(locales?: LocalesArgument, options?: DateTimeFormatOptions): stringConverts a date to a string by using the current or specified locale.
locales?: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringtoLocaleTimeString(): stringReturns a time as a string value appropriate to the host environment's current locale.
stringtoLocaleTimeString(locales?: string | string[], options?: DateTimeFormatOptions): stringConverts a time to a string by using the current or specified locale.
locales?: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringtoLocaleTimeString(locales?: LocalesArgument, options?: DateTimeFormatOptions): stringConverts a time to a string by using the current or specified locale.
locales?: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.options?: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.stringvalueOf(): numberReturns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
numbergetTime(): numberReturns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
numbergetFullYear(): numberGets the year, using local time.
numbergetUTCFullYear(): numberGets the year using Universal Coordinated Time (UTC).
numbergetMonth(): numberGets the month, using local time.
numbergetUTCMonth(): numberGets the month of a Date object using Universal Coordinated Time (UTC).
numbergetDate(): numberGets the day-of-the-month, using local time.
numbergetUTCDate(): numberGets the day-of-the-month, using Universal Coordinated Time (UTC).
numbergetDay(): numberGets the day of the week, using local time.
numbergetUTCDay(): numberGets the day of the week using Universal Coordinated Time (UTC).
numbergetHours(): numberGets the hours in a date, using local time.
numbergetUTCHours(): numberGets the hours value in a Date object using Universal Coordinated Time (UTC).
numbergetMinutes(): numberGets the minutes of a Date object, using local time.
numbergetUTCMinutes(): numberGets the minutes of a Date object using Universal Coordinated Time (UTC).
numbergetSeconds(): numberGets the seconds of a Date object, using local time.
numbergetUTCSeconds(): numberGets the seconds of a Date object using Universal Coordinated Time (UTC).
numbergetMilliseconds(): numberGets the milliseconds of a Date, using local time.
numbergetUTCMilliseconds(): numberGets the milliseconds of a Date object using Universal Coordinated Time (UTC).
numbergetTimezoneOffset(): numberGets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).
numbersetTime(time: number): numberSets the date and time value in the Date object.
time: numberA numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.numbersetMilliseconds(ms: number): numberSets the milliseconds value in the Date object using local time.
ms: numberA numeric value equal to the millisecond value.numbersetUTCMilliseconds(ms: number): numberSets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
ms: numberA numeric value equal to the millisecond value.numbersetSeconds(sec: number, ms?: number): numberSets the seconds value in the Date object using local time.
sec: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetUTCSeconds(sec: number, ms?: number): numberSets the seconds value in the Date object using Universal Coordinated Time (UTC).
sec: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetMinutes(min: number, sec?: number, ms?: number): numberSets the minutes value in the Date object using local time.
min: numberA numeric value equal to the minutes value.sec?: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetUTCMinutes(min: number, sec?: number, ms?: number): numberSets the minutes value in the Date object using Universal Coordinated Time (UTC).
min: numberA numeric value equal to the minutes value.sec?: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetHours(hours: number, min?: number, sec?: number, ms?: number): numberSets the hour value in the Date object using local time.
hours: numberA numeric value equal to the hours value.min?: numberA numeric value equal to the minutes value.sec?: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetUTCHours(hours: number, min?: number, sec?: number, ms?: number): numberSets the hours value in the Date object using Universal Coordinated Time (UTC).
hours: numberA numeric value equal to the hours value.min?: numberA numeric value equal to the minutes value.sec?: numberA numeric value equal to the seconds value.ms?: numberA numeric value equal to the milliseconds value.numbersetDate(date: number): numberSets the numeric day-of-the-month value of the Date object using local time.
date: numberA numeric value equal to the day of the month.numbersetUTCDate(date: number): numberSets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
date: numberA numeric value equal to the day of the month.numbersetMonth(month: number, date?: number): numberSets the month value in the Date object using local time.
month: numberA numeric value equal to the month. The value for January is 0, and other month values follow consecutively.date?: numberA numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.numbersetUTCMonth(month: number, date?: number): numberSets the month value in the Date object using Universal Coordinated Time (UTC).
month: numberA numeric value equal to the month. The value for January is 0, and other month values follow consecutively.date?: numberA numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.numbersetFullYear(year: number, month?: number, date?: number): numberSets the year of the Date object using local time.
year: numberA numeric value for the year.month?: numberA zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.date?: numberA numeric value equal for the day of the month.numbersetUTCFullYear(year: number, month?: number, date?: number): numberSets the year value in the Date object using Universal Coordinated Time (UTC).
year: numberA numeric value equal to the year.month?: numberA numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.date?: numberA numeric value equal to the day of the month.numbertoUTCString(): stringReturns a date converted to a string using Universal Coordinated Time (UTC).
stringtoISOString(): stringReturns a date as a string value in ISO format.
string[toPrimitive](hint: literal default): stringConverts a Date object to a string.
string[toPrimitive](hint: literal string): stringConverts a Date object to a string.
string[toPrimitive](hint: literal number): numberConverts a Date object to a number.
number[toPrimitive](hint: string): string | numberConverts a Date object to a string or number.
hint: stringThe strings "number", "string", or "default" to specify what primitive to return.string | numbermicroseconds?: numbernanoseconds?: number