Next: Common-Lisp Time, Previous: Time Zone, Up: Time and Date [Contents][Index]

- Data Type:
**Calendar-Time** -
is a datatype encapsulating time.

- Data Type:
**Coordinated Universal Time** -
(abbreviated

*UTC*) is a vector of integers representing time:- seconds (0 - 61)
- minutes (0 - 59)
- hours since midnight (0 - 23)
- day of month (1 - 31)
- month (0 - 11). Note difference from
`decode-universal-time`

. - the number of years since 1900. Note difference from
`decode-universal-time`

. - day of week (0 - 6)
- day of year (0 - 365)
- 1 for daylight savings, 0 for regular time

- Function:
**gmtime***caltime* Converts the calendar time

`caltime`to UTC and returns it.

- Function:
**localtime***caltime tz* Returns

`caltime`converted to UTC relative to timezone`tz`.

- Function:
**localtime***caltime* converts the calendar time

`caltime`to a vector of integers expressed relative to the user’s time zone.`localtime`

sets the variable`*timezone*`with the difference between Coordinated Universal Time (UTC) and local standard time in seconds (see tzset).

- Function:
**gmktime***univtime* Converts a vector of integers in GMT Coordinated Universal Time (UTC) format to a calendar time.

- Function:
**mktime***univtime* Converts a vector of integers in local Coordinated Universal Time (UTC) format to a calendar time.

- Function:
**mktime***univtime tz* Converts a vector of integers in Coordinated Universal Time (UTC) format (relative to time-zone

`tz`) to calendar time.

- Function:
**asctime***univtime* Converts the vector of integers

`caltime`in Coordinated Universal Time (UTC) format into a string of the form`"Wed Jun 30 21:49:08 1993"`

.

- Function:
**gtime***caltime* - Function:
**ctime***caltime* - Function:
**ctime***caltime tz* Equivalent to

`(asctime (gmtime`

,`caltime`))`(asctime (localtime`

, and`caltime`))`(asctime (localtime`

, respectively.`caltime``tz`))

Next: Common-Lisp Time, Previous: Time Zone, Up: Time and Date [Contents][Index]