Class: Interval
Defined in: functions.ts:151
A calendar/clock interval, stored as independent unit components.
Constructors
Constructor
new Interval():
Interval
Returns
Interval
Properties
days
days:
number=0
Defined in: functions.ts:159
Days component.
hours
hours:
number=0
Defined in: functions.ts:157
Hours component.
minutes
minutes:
number=0
Defined in: functions.ts:155
Minutes component.
months
months:
number=0
Defined in: functions.ts:161
Months component.
seconds
seconds:
number=0
Defined in: functions.ts:153
Seconds component.
years
years:
number=0
Defined in: functions.ts:163
Years component.
Methods
valueOf()
valueOf():
number
Defined in: functions.ts:169
Approximate total duration in milliseconds, treating a month as 30 days and a year as 365 days. Useful for ordering/comparison, not for exact arithmetic.
Returns
number