Methods
[toPrimitive]
- [toPrimitive](hint: "default"): string
- [toPrimitive](hint: "string"): string
- [toPrimitive](hint: "number"): number
- [toPrimitive](hint: string): string | number
Parameters
Returns string
Parameters
Returns string
Parameters
Returns number
Parameters
Returns string | number
getDate
Returns number
getDay
Returns number
getFullYear
Returns number
getHours
Returns number
getMilliseconds
- getMilliseconds(): number
Returns number
getMinutes
Returns number
getMonth
Returns number
getSeconds
Returns number
getTime
Returns number
getTimezoneOffset
- getTimezoneOffset(): number
Returns number
getUTCDate
Returns number
getUTCDay
Returns number
getUTCFullYear
Returns number
getUTCHours
Returns number
getUTCMilliseconds
- getUTCMilliseconds(): number
Returns number
getUTCMinutes
Returns number
getUTCMonth
Returns number
getUTCSeconds
Returns number
toDateString
Returns string
toISOString
Returns string
toJSON
- toJSON(key?: any): string
Parameters
Returns string
toLocaleDateString
- toLocaleDateString(): string
- toLocaleDateString(locales?: string | string[], options?: DateTimeFormatOptions): string
Returns string
Parameters
Optional locales: string | string[]
Optional options: DateTimeFormatOptions
Returns string
toLocaleString
- toLocaleString(): string
- toLocaleString(locales?: string | string[], options?: DateTimeFormatOptions): string
Returns string
Parameters
Optional locales: string | string[]
Optional options: DateTimeFormatOptions
Returns string
toLocaleTimeString
- toLocaleTimeString(): string
- toLocaleTimeString(locales?: string | string[], options?: DateTimeFormatOptions): string
Returns string
Parameters
Optional locales: string | string[]
Optional options: DateTimeFormatOptions
Returns string
toString
Returns string
toTimeString
Returns string
toUTCString
Returns string
valueOf
Returns number
An object like JavaScript's Date, but immutable.
Immutability is enforced at compile time by removing all mutable methods in the type definition.