Class Val.Interval

Inheritance graph
Val.Timebase Val.Time Val.Interval
Description

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.

Note

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

Note

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

Description

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

Description

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