Next: Runtime Environment, Previous: User Information, Up: POSIX
Return the number of seconds since 1970-01-01 00:00:00 UTC, excluding leap seconds.
Return a pair containing the number of seconds and microseconds since 1970-01-01 00:00:00 UTC, excluding leap seconds. Note: whether true microsecond resolution is available depends on the operating system.
The following procedures either accept an object representing a broken down time and return a selected component, or accept an object representing a broken down time and a value and set the component to the value. The numbers in parentheses give the usual range.
tm:secset-tm:sectm:minset-tm:mintm:hourset-tm:hourtm:mdayset-tm:mdaytm:monset-tm:montm:yearset-tm:yeartm:wdayset-tm:wdaytm:ydayset-tm:ydaytm:isdstset-tm:isdsttm:gmtoffset-tm:gmtofftm:zoneset-tm:zoneReturn an object representing the broken down components of sse, the seconds-since-epoch (from, e.g.,
current-time). The time zone for the calculation is optionally specified by zone (a string), otherwise theTZenvironment variable or the system default is used.
Return an object representing the broken down components of sse, the seconds-since-epoch (from, e.g.,
current-time). The values are calculated for UTC.
bdt is an object representing broken down time and
zoneis an optional time zone specifier (otherwise the TZ environment variable or the system default is used).Return a pair: the car is a corresponding integer time value like that returned by
current-time; the cdr is a broken down time object, similar to bdt but with normalized values.
Initialize the timezone from the TZ environment variable or the system default. It's not usually necessary to call this procedure since it's done automatically by other procedures that depend on the timezone.
Format the broken-down time bdt using template. bdt is an object with time components in the form returned by
localtimeorgmtime. template is a string which can include formatting specifications introduced by a%character. The formatting of month and day names is dependent on the current locale. Return the formatted string.
Perform the reverse action to
strftime, parsing string according to the specification supplied in template. The interpretation of month and day names is dependent on the current locale.Return a pair. The car has an object with time components in the form returned by
localtimeorgmtime, but the time zone components are not usefully set. The cdr reports the number of characters from string which were used for the conversion.
The value of this variable is the number of time units per second reported by the following procedures.
Return an object with information about real and processor time. The following procedures accept such an object as an argument and return a selected component:
tms:clock- The current real time, expressed as time units relative to an arbitrary base.
tms:utime- The CPU time units used by the calling process.
tms:stime- The CPU time units used by the system on behalf of the calling process.
tms:cutime- The CPU time units used by terminated child processes of the calling process, whose status has been collected (e.g., using
waitpid).tms:cstime- Similarly, the CPU times units used by the system on behalf of terminated child processes.