Constructors
constructor
- new DateTime(millisecondsSinceEpoch?: number): DateTime
-
Parameters
-
Optional
millisecondsSinceEpoch: number
Accessors
Milliseconds
- get Milliseconds(): number
Methods
Diff
-
Returns number
-
Returns number
ToLocalString
- ToLocalString(): string
- ToLocalString(format?: string): string
-
Returns string
-
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
-
date: Date
-
timezoneOffset: number
1 - 31