Constructors
constructor
- new TimeSpan(milliseconds: number): TimeSpan
- new TimeSpan(hours: number, minutes: number, seconds: number): TimeSpan
- new TimeSpan(days: number, hours: number, minutes: number, seconds: number): TimeSpan
- new TimeSpan(days: number, hours: number, minutes: number, seconds: number, milliseconds: number): TimeSpan
-
Parameters
-
Parameters
-
hours: number
-
minutes: number
-
seconds: number
-
Parameters
-
days: number
-
hours: number
-
minutes: number
-
seconds: number
-
Parameters
-
days: number
-
hours: number
-
minutes: number
-
seconds: number
-
milliseconds: number
Properties
Private _millis
_millis: number
Static Private MaxMilliSeconds
MaxMilliSeconds: number
Static Private MaxSeconds
MaxSeconds: number
Static MaxValueTimeSpan
Static Private MillisPerDay
MillisPerDay: number
Static Private MillisPerHour
MillisPerHour: number
Static Private MillisPerMinute
MillisPerMinute: number
Static Private MillisPerSecond
MillisPerSecond: number
Static Private MinMilliSeconds
MinMilliSeconds: number
Static Private MinSeconds
MinSeconds: number
Static MinValueTimeSpan
Static Zero
Accessors
Days
-
Returns number
Hours
-
Returns number
Milliseconds
- get Milliseconds(): number
-
Returns number
Minutes
-
Returns number
Seconds
-
Returns number
TotalDays
-
Returns number
TotalHours
-
Returns number
TotalMilliseconds
- get TotalMilliseconds(): number
-
Returns number
TotalMinutes
- get TotalMinutes(): number
-
Returns number
TotalSeconds
- get TotalSeconds(): number
-
Returns number
Methods
Add
-
Parameters
CompareTo
- CompareTo(value: TimeSpan): number
- CompareTo(value: any): number
-
Parameters
Returns number
-
Parameters
Returns number
Static Compare
-
Parameters
Returns number
Static Equals
-
Parameters
Returns boolean
Static FromDays
-
Parameters
Static FromHours
-
Parameters
Static FromMilliseconds
- FromMilliseconds(value: number): TimeSpan
-
Parameters
Static FromMinutes
-
Parameters
Static FromSeconds
-
Parameters
Static Parse
-
Parameters
Static Private TimeToTicks
- TimeToTicks(hour: number, minute: number, second: number): number
-
Parameters
-
hour: number
-
minute: number
-
second: number
Returns number
TimeSpan basics from c# using momentjs