Class Val.Interval

Inheritance graph
Val.Timebase Val.Time Val.Interval

Lightweight time and date interval type. It stores the interval in integers of nanoseconds, days and months. Supports arithmetic with Time, TimeTZ, Timestamp and Date objects. Cast it to int or float to obtain seconds.


Depending on daylight-saving time, a day may not equal 24 hours.


The number of days in a month depends on the the time of the year.

See also

Timestamp, Date, Time

Variable days

int Val.Interval.days


Number of days; may not be equal to 24 hours per day, depending on daylight-saving time.

Inherit Time

inherit Time : Time

Variable months

int Val.Interval.months


Number of months; the number of days per month varies accordingly.