Next: iklib time date, Previous: iklib time time, Up: iklib time [Index]
Time spans since the Epoch are represented by instances of
<epoch-time>
objects, which is a disjoint object–type; the
object–type <epoch-time>
is a subtype of <time>
. An
<epoch-time>
object represents the time elapsed since the Epoch as
determined by the POSIX function clock_gettime()
with the
argument CLOCK_REALTIME
; (*manpages*)Clock and time
functions.
The following bindings are exported by the library (vicare)
.
Build and return a new <epoch-time>
object. The arguments are
normalised as explained for make-time
.
Return an instance of <epoch-time>
representing the current time
elapsed since the Epoch as determined by the POSIX function
clock_gettime()
((*manpages*)Clock and time
functions) with the argument CLOCK_REALTIME
.
Return an instance of <epoch-time>
representing a time since the Epoch that is “far” in the
future.
Return #t
if obj is a <epoch-time>
object; otherwise
return #f
.
Return #t
if obj is a (possibly empty) proper list of
<epoch-time>
objects; otherwise return #f
.
We can interpret the Epoch time as time as expressed in the
UTC or GMT+00 time zone. This function returns the
offset in seconds from the local time zone to UTC; in Rome
(GMT+01) this function returns 3600
.
Add T to ET and return the result.
Subtract T from ET and return the result.
Next: iklib time date, Previous: iklib time time, Up: iklib time [Index]