Class Val.Time

Inheritance graph

Lightweight time type. Stores absolute times in a day with nanosecond resolution. Normalised value range is between 00:00:00.000000000 and 23:59:59.999999999. Values outside this range are accepted, and have arithmetically sound results. Supports arithmetic with Interval and Date objects. Cast it to int or float to obtain seconds since 00:00.

See also

Interval, Date, TimeTZ, Range

Inherit Timebase

inherit Timebase : Timebase

Method create

Val.Time Val.Time(int hour, int min, void|int sec, void|int nsec)
Val.Time Val.Time(int sec)

Parameter hour

Hours since epoch.

Parameter min

Minutes since epoch.

Parameter sec

Seconds since epoch.

Parameter nsec

Nanoseconds since epoch.