Skip to main content

Time

CLOCK

clock( ) -> Number
STABLE

The number of seconds since the system was started


DAY

day(Timeval v) -> Integer
STABLE

No description.


HOUR

hour(Timeval v) -> Integer
STABLE

No description.


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


MICROSECOND

microsecond(Timeval v) -> Integer
STABLE

No description.


MINUS

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

tv - sec


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

tv2 - tv1


MINUTE

minute(Timeval v) -> Integer
STABLE

No description.


MONTH

month(Timeval v) -> Integer
STABLE

No description.


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


SECOND

second(Timeval v) -> Integer
STABLE

No description.


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 tv) -> Timeval
STABLE

Get the timestamp of timestamped object tv


TIMEVAL

timeval(Number r) -> Timeval tv
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(Number tv, Object o) -> Timeval
STABLE

Make a timestamped object for o with time point tv


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

Make a timestamped object for o with time point tv


ts(Object o) -> Timeval
STABLE

Make a timestamped object for value o with current time


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 tv) -> Object
STABLE

Get the value of timestamped object tv


YEAR

year(Timeval v) -> Integer
STABLE

No description.