[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.21.8.1 POSIX time

Function: sys-time
[POSIX] Returns the current time in POSIX time (the time since Epoch (00:00:00 UTC, January 1, 1970), measured in seconds). It may be a non-integral number, depending on the architecture.

Note that POSIX's definition of "seconds since the Epoch" doesn't take leap seconds into acount.

Function: sys-gettimeofday
Returns two values. The first value is a number of seconds, and the second value is a fraction in a number of microseconds, since 1970/1/1 0:00:00 UTC. If the system doesn't have gettimeofday call, this function calls time(); in that case, microseconds portion is always zero.

Builtin Class: <sys-tm>
Represents struct tm, a calendar date. It has the following slots.
Instance Variable: <sys-tm> sec
Seconds. 0-61.
Instance Variable: <sys-tm> min
Minutes. 0-59.
Instance Variable: <sys-tm> hour
Hours. 0-23.
Instance Variable: <sys-tm> mday
Day of the month, counting from 1. 1-31.
Instance Variable: <sys-tm> mon
Month, counting from 0. 0-11.
Instance Variable: <sys-tm> year
Years since 1900, e.g. 102 for the year 2002.
Instance Variable: <sys-tm> wday
Day of the week. Sunday = 0 .. Saturday = 6.
Instance Variable: <sys-tm> yday
Day of tye year. January 1 = 0 .. December 31 = 364 or 365.
Instance Variable: <sys-tm> isdst
A flag that indicates if the daylight saving time is in effect. Positive if DST is in effect, zero if not, or negative if unknown.

Function: sys-gmtime time
Function: sys-localtime time
[POSIX] Converts time to <sys-tm> object, represented in GMT or local timezone, respectively. Time can be either POSIX-time or SRFI-time.

Function: sys-ctime time
[POSIX] Converts time to it string representation, using POSIX ctime(). Time can be either POSIX-time or SRFI-time.

Function: sys-difftime time1 time0
[POSIX] Returns the difference of two times in the real number of seconds. Time0 and tiem1 can be either POSIX-time or SRFI-time.

Function: sys-asctime tm
[POSIX] Converts <sys-tm> object tm to a string representation.

Function: sys-strftime format tm
[POSIX] Converts <sys-tm> object tm to a string representation, according to a format string format.

Function: sys-mktime tm
[POSIX] Converts <sys-tm> object tm, expressed as local time, to the POSIX-time (number of seconds since Epoch).

Function: sys-tm->alist tm
(Deprecated function)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Ken Dickey on November, 28 2002 using texi2html