Next: srfi time spec date, Previous: srfi time spec current, Up: srfi time spec [Index]
The following procedures are required:
Return a new time
object.
Return #t
if obj is a time
object; otherwise return
#f
.
Return the Time type symbol of time. srfi time spec intro for details.
Return the Nanosecond component of time.
Return the Second component of time.
Set the Time type component of time to time-type, which must be one of the time type symbols. srfi time spec intro for details.
NOTE This changes the semantics of the time object. To convert a time to another system of representation, use one of the conversion procedures.
Set the Nanosecond component of time to integer.
Set the Second component of time to integer.
Create a new time
object, with the same Time type,
nanosecond, and Second as time.
All of the time comparison procedures require the time objects to be of
the same type. It is an error to use these procedures on time objects
of different types. For the point–in–time measurements (e.g.
time-tai
and time-utc
), the semantics are described in
plain text. For durations (e.g. time-duration
, time-cpu
)
the semantics are described in parentheses.
The following procedures are required.
Return #t
if time1 is before or at (less than or equal to)
time2, #f
otherwise.
Return #t
if time1 is before (less than) time2,
#f
otherwise.
Return #t
if time1 at (equal) time2, #f
otherwise.
Return #t
if time1 is at or after (greater than or equal to)
time2, #f
otherwise.
Return #t
if time1 is after (greater than) time2,
#f
otherwise.
The following procedures are required.
Return a new time
object of type time-duration
representing the time duration between time1 and time2. It
is an error if time1 and time2 are of different time types.
Compute the time duration between time1 and time2; mutate
time1 to represent the computed time as a time-duration
object. It is an error if time1 and time2 are of different
time types.
Return a new time
object, of type equal to the type of
time1, representing the result of adding duration to
time. duration must be a time
object of type
time-duration
.
Mutate time to represent the result of adding duration to
time. duration must be a time
object of type
time-duration
.
Return a new time
object, of the same type of time,
representing the result of subtracting duration from time.
duration must be a time
object of type
time-duration
.
Mutate time to represent the result of subtracting duration
from time. duration must be a time
object of type
time-duration
.
Next: srfi time spec date, Previous: srfi time spec current, Up: srfi time spec [Index]