Skip to main content

Time

CLOCK

clock( ) -> Number
STABLE

The number of seconds since the system was started


LOCAL_TIME

local_time(Timeval tv) -> Charstring
STABLE

Convert time point tv into local ISO time string


local_time( ) -> Charstring
STABLE

The current time as local ISO time string


LOCAL_UTC_TIME

local_utc_time(Timeval tv) -> Charstring
STABLE

Convert time point tv into local UTC time string


local_utc_time( ) -> Charstring
STABLE

The current local time as ISO UTC time string


MINUS

minus(Timeval tv, Number sec) -> Timeval
STABLE

tv - sec


minus(Timeval tv1, Timeval tv2) -> Real
STABLE

tv2 - tv1


NOW

now( ) -> Timeval
STABLE

Current time point


PARSE_ISO_TIMESTAMP

parse_iso_timestamp(Charstring ts) -> Timeval
STABLE

Convert ISO time string ts into time point


PLUS

plus(Number sec, Timeval tv) -> Timeval
STABLE

sec + tv


plus(Timeval tv, Number sec) -> Timeval
STABLE

tv + sec


REAL

real(Timeval tv) -> Real r
STABLE

Convert time point tv into number of seconds since epoch


RNOW

rnow( ) -> Real
STABLE

The current time as number of seconds since epoch


SEC

sec(Timeval tv) -> Integer
STABLE

Second in time point tv


SHIFT

shift(Timeval tv, Number sec) -> Timeval
STABLE

Shift sec seconds from time point tv.

Same as tv+sec


SLEEP

sleep(Number sec) -> Number
STABLE

Sleep for sec seconds


SPAN

span(Timeval tv1, Timeval tv2) -> Real
STABLE

The difference in seconds between time points tv2 and tv1.

Same as tv2-tv1


TIMESTAMP

timestamp(Timeval o) -> Timeval
STABLE

Get the timestamp of timestamped object o


TIMEVAL

timeval(Number r) -> Timeval t
STABLE

Convert number of seconds since epoch r into time point


timeval(Vector tv) -> Timeval
STABLE

The time point of a UTC time vector

[year, month, day, hour, minute, microsecond]


TIME_VECTOR

time_vector(Timeval tv) -> Vector of Number
STABLE

The components of time point tv as a UTC time vector

[year, month, day, hour, minute, microsecond]


TIME_ZONE

time_zone( ) -> Number
STABLE

Diffence in seconds between UTC and the current local time zone

west of UTC


TS

ts(Object o) -> Timeval
STABLE

Make a timestamped object for value o with current time


ts(Timeval tv, Object o) -> Timeval
STABLE

Make a timestamped object for o with time point tv


USEC

usec(Timeval tv) -> Integer
STABLE

Microsecond in time point tv


UTC_OFFSET

utc_offset( ) -> Number
STABLE

Difference in seconds between UTC and the current local time zone

west of UTC adjusted for daylight saving


UTC_TIME

utc_time(Timeval tv) -> Charstring
STABLE

Convert time point tv into ISO UTC time string


utc_time( ) -> Charstring
STABLE

The current time as ISO UTC time string


VALUE

value(Timeval o) -> Object
STABLE

Get the value of timestamped object o