Constructors
constructor
- new DateTime(millisecondsSinceEpoch?: number): DateTime
Parameters
Optional millisecondsSinceEpoch: number
Accessors
Day
Returns number
DayOfWeek
Hours
Returns number
Milliseconds
- get Milliseconds(): number
Returns number
Minutes
Returns number
Month
Returns number
Seconds
Returns number
WeekOfYear
Returns number
Year
Returns number
Methods
Add
Parameters
Parameters
Clone
Diff
Parameters
Returns number
Parameters
Returns number
Equals
Parameters
Returns boolean
Subtract
Parameters
Parameters
ToDate
Returns Date
ToLocalString
- ToLocalString(): string
- ToLocalString(format?: string): string
Returns string
Parameters
Returns string
ToString
- ToString(): string
- ToString(format?: string, timezoneOffset?: number): string
Returns string
Parameters
Optional format: string
Optional timezoneOffset: number
Returns string
Static From
Parameters
Parameters
date: Date
timezoneOffset: number
1 - 31