Constructors
constructor
-
Parameters
Properties
Private duration
duration: Duration
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
TotalDays
-
Returns number
TotalHours
-
Returns number
TotalMilliseconds
- get TotalMilliseconds(): number
-
Returns number
TotalMinutes
- get TotalMinutes(): number
-
Returns number
TotalMonths
- get TotalMonths(): number
-
Returns number
TotalSeconds
- get TotalSeconds(): number
-
Returns number
TotalYears
-
Returns number
Methods
add
-
Parameters
-
Parameters
-
Parameters
as
- as(units: string): number
-
Parameters
Returns number
asDays
-
Returns number
asHours
-
Returns number
asMilliseconds
-
Returns number
asMinutes
-
Returns number
asMonths
-
Returns number
asSeconds
-
Returns number
asYears
-
Returns number
days
-
Returns number
hours
-
Returns number
humanize
- humanize(withSuffix?: boolean): string
-
Parameters
-
Optional withSuffix: boolean
Returns string
milliseconds
-
Returns number
minutes
-
Returns number
months
-
Returns number
seconds
-
Returns number
subtract
-
Parameters
-
Parameters
-
Parameters
toISOString
-
Returns string
years
-
Returns number
Static FromDays
-
Parameters
Static FromHours
-
Parameters
Static FromMilliseconds
- FromMilliseconds(value: number): TimeSpan
-
Parameters
Static FromMinutes
-
Parameters
Static FromSeconds
-
Parameters