Class Val.Date

Description

Lightweight date type. Stores internally in days since epoch. Supports arithmetic with Interval, Timestamp, Time and TimeTZ objects. Cast it to int or float to obtain unix_time.

See also

Interval, Timestamp, Time, TimeTZ, Range


Variable days

int Val.Date.days

Description

Since 1970-01-01 (epoch).


Method create

Val.Date Val.Date(int year, int month, int day)
Val.Date Val.Date(this_program copy)
Val.Date Val.Date(Timestamp copy)
Val.Date Val.Date(mapping(string:int) tm)
Val.Date Val.Date(int unix_time)
Val.Date Val.Date(float unix_time)
Val.Date Val.Date()