Next: Time Zones, Up: Current Time [Index]
Many functions return Lisp timestamp values that count seconds, and that can represent absolute time by counting seconds since the epoch of 1970-01-01 00:00:00 UTC.
Traditionally Lisp timestamps were integer pairs. Things have changed and now
programs ordinarily should not depend on the current default form. You can use
the time-convert
function to convert it to the needed form.
Each of these represents a number of seconds.
simplest, but cannot represent subsecond timestamps
‘(ticks . hz)’ This represents ‘ticks/hz’ seconds. A common value for ‘hz’ is 1000000000, for a nanosecond-resolution clock.
‘(high low micro pico)’
More General Time Value Formats
Function arguments accept a more general time value format.
Conversion of Lisp Timestamp Values into Calendrical and Other Forms
Time values can be converted to and from calendrical and other forms. Some of these conversions rely on operating system functions that limit the range of possible time values.
format-time-string
time-convert
decode-time
, float-time
Next: Time Zones, Up: Current Time [Index]