Next: , Previous: Printing Scheme, Up: Textual Conversion Packages

4.13 Time and Date

If (provided? 'current-time):

The procedures current-time, difftime, and offset-time deal with a calendar time datatype which may or may not be disjoint from other Scheme datatypes.

— Function: current-time

Returns the time since 00:00:00 GMT, January 1, 1970, measured in seconds. Note that the reference time is different from the reference time for get-universal-time in Common-Lisp Time.

— Function: difftime caltime1 caltime0

Returns the difference (number of seconds) between twe calendar times: caltime1 - caltime0. caltime0 may also be a number.

— Function: offset-time caltime offset

Returns the calendar time of caltime offset by offset number of seconds (+ caltime offset).