| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
Arguments: date-time
This function, the date-time analog of decode-universal-time, takes a date-time
object and
returns, as multiple value, its sizteen components plus the year and
the zone. (So this function returns eighteen values in all.) Each
value can be accessed individually with the appropriate reader
function.
The argument can also be the keyqord :key
, in which
case the return value is a list of keywords identifying the 18 return
values. Here is an example showing some of the return values for a
date-time and some of the explanation keywords when the argument is
:key
:
cl-user(3): (require :datetime) t cl-user(4): (use-package :util.date-time) t cl-user(5): (setq d (date-time "1985-04-12T23:20:50")) #<date-time "1985-04-12T23:20:50" @ #x71b527d2> cl-user(6): (multiple-value-list (decode-date-time d)) (0 50 20 23 12 4 1985 nil 85 19 ...) cl-user(7): (decode-date-time :key) (:secondf :second :minute :hour :ymd-day :ymd-month :year :zone :ymd-yd-year-in-century :ymd-yd-century ...)
The return values, along with their type and the correcsponding reader function are:
year
does not name a slot in a date-time
instance. The year is
calculated from the date-time-ymd-yd-before-year-0, date-time-ymd-yd-century, and
date-time-ymd-yd-year-in-century slots of
date-time.
nil
. Returned by date-time-zone. zone
does not name a slot in a date-time
instance. The zone is
calculated from the date-time-zone-hour and date-time-zone-minute slots.
t
) or after (nil
). Reader is date-time-ymd-yd-before-year-0.
See date-time.htm for information on support in Allegro CL for parsing and generating time expressions using the ISO 8601 standard.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |