Class Val.TimeTZ

Inheritance graph
Val.Timebase Val.Time Val.TimeTZ

Lightweight time type with timezone. Equivalent to Time, but stores a timezone offset as well. Cast it to int or float to obtain seconds since 00:00.

See also

Time, Date, Interval, Range

Inherit Time

inherit Time : Time

Variable timezone

int Val.TimeTZ.timezone


Timezone offset in seconds west from UTC (includes daylight-saving time adjustment).


ISO time format displays the timezone in seconds east from UTC.

See also


Method create

Val.TimeTZ Val.TimeTZ(mapping(string:int) tm)

Parameter tm

Standard tm mapping, optionally extended with nsec for nanoseconds. Any specified timezone is used as is. Passed values will not be normalised. Days/months/years are ignored.