Generic FunctionPackage: util.date-timeToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

date-time

Arguments: date-timespec &key expanded-digits fraction-digits date start end complete

This function returns the date-time object denoted by the ISO-8601 date-timespec. Note that this function does not check the validity of its input. It is an error to pass invalid input to this function and the behavior in that case is undefined.

If date is false, then date-timespec is assumed only to represent a time of the day.

If expanded-digits is not nil, then the year is assumed to be expanded-digits + 4 digits long. Also, if expanded-digits is specified, then the year must be preceded by a plus-sign (+) or minus-sign (-). This is an ISO-8601 requirement.

If fraction-digits is not nil, then if a fraction is found in the time section, it is assumed to have exactly fraction-digits digits past the decimal point (either #\, or #\.).

If complete is false, then complete-date-time is not called. If complete is true, then the return value is the result of calling complete-date-time on the parsed result.

The following ISO 8601 patterns are recognized:

For the date (>Y< indicates extra year digits, the number of which are specified by the expanded-digits argument):

YYYYMMDD, YYYY-MM-DD, YYYY-MM, YYYY, YY, YYYYDDD, YYYY-DDD, YYYYWwwD,
YYYY-Www-D, YYYYWww, YYYY-Www, YYMMDD, YY-MM-DD, -YYMM, -YY-MM, -YY,
--MMDD, --MM-DD, --MM, ---DD, YYDDD, YY-DDD, -DDD, YYWwwD, YY-Www-D,
YYWww, YY-Www, -YWwwD, -Y-Www-D, -YWww, -Y-Www, -WwwD, -Www-D, -Www,
-W-D, +<Y>YYYY-MM-DD, -<Y>YYYY-MM-DD, +<Y>YYYY-DDD, 
-<Y>YYYY-DDD, +<Y>YYYY-Www-D, -<Y>YYYY-Www-D, 
+<Y>YYYY-Www, -<Y>YYYY-Www, +<Y>YYYY-MM, 
-<Y>YYYY-MM

For the time (<s> indicates extra digits, the number of which are specified by the fraction-digits argument):

hhmmss, hh:mm:ss, hhmm, hh:mm, hh, hhmmss,s<s>, hh:mm:ss,s<s>,
hhmm,m<m>, hh:mm,m<m>, hh,h<h>, -mmss, -mm:ss, -mm, --ss, 
-mmss,<s>, -mm:ss,<s>, -mm,<m>, --ss,<s>

For the zone: hhmm, hh, hh:mm

Combinations:

<Date>T<Time>+<Zone>
<Date>T<Time>-<Zone>

A space (#\Space) can be substituted for T (#\T) in Date Time combination expressions.

date-time slots

When the date-time object with fully specified date and time is initially created by this function, all slots are filled in as long as the complete keyword argument has its initial value, which is true. If complete is specified nil, only those slots whose values are in the ISO 8601 string are typically filled in and teh remaining slot values are left as nil. Thus for the string "2003-017T10:10:10" (the seventeenth day of 2003 -- i.e. January 17 -- 10:10:10 AM), this call:

(util.date-time:date-time "2003-017T10:10:10" :complete nil)

results in only the ymd-yd-century, ymd-yd-year-in-century, and yd-day having non-nil values among the date slots, along with hour, minute, and second among the time slots. The other slot values are all nil. Accessing those slots (by, say, calling date-time-ywd-day or date-time-hourf) does not cause the value to be calculated: nil is returned. Applying complete-date-time to an uncompleted date-time object (where all information is available) causes values to be calculated for unfilled slots.

Whether the date or the time is incompletely specified, then not all slots are filled even if the complete argument is true or if complete-date-time is called. Examples of incomplete ISO 8601 string include "03-017T10:10:10", where the year is incomplete, and "03-017T10:10", where the year is incomplete and the second value is not specified. The slots where information is specified have non-nil value. Many other slots do not have non-nil values even if one might determine the value in theory. Thus for the string, "03-017T10:10:10", the ymd-month slot is not filled in even though it must be 1 (= January). (Note that the ymd-month slot of "00-060" is not determined: it could be March 1, as in 1900, not a leap year, or February 29, as in 2000, a leap year.) The general rule is that most slots will be nil when the date or time specification is incomplete. Slots in an incomplete date-time object can be filled in from another date-time object using merge-date-times.

Examples

(require :datetime)
(use-package :util.date-time)

;; The following all return valid date-time instances

(date-time "2005-09-13T15:01:20-07:00") -> #<date-time
                                                "2005-09-13T15:01:20-07:00"
                                                @
                                                #x7145782>
(date-time "2005-09-13 15:01:20-07:00") -> #<date-time
                                                "2005-09-13T15:01:20-07:00"
                                                @
                                                #x714ad32>
(date-time "19850412") -> #<date-time "1985-04-12" @ #x71502e2>
(date-time "1985-04-12") -> #<date-time "1985-04-12" @ #x7151dfa>
(date-time "1985-04") -> #<date-time "1985-04" @ #x71539a2>
(date-time "1985") -> #<date-time "1985" @ #x7154fba>
(date-time "19") -> #<date-time "19" @ #x715636a>
(date-time "850412") -> #<date-time "85-04-12" @ #x71575f2>
(date-time "85-04-12") -> #<date-time "85-04-12" @ #x7158d72>
(date-time "-8504") -> #<date-time "-85-04" @ #x715a582>
(date-time "-85-04") -> #<date-time "-85-04" @ #x715baca>
(date-time "-85") -> #<date-time "-85" @ #x715d05a>
(date-time "--0412") -> #<date-time "--04-12" @ #x715e37a>
(date-time "--04-12") -> #<date-time "--04-12" @ #x715f952>
(date-time "--04") -> #<date-time "--04" @ #x7160f72>
(date-time "---12") -> #<date-time "---12" @ #x7162322>
(date-time "+0019850412"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x716376a>
(date-time "-0019850412"
  :expanded-digits 2) -> #<date-time "-1985-04-12" @ #x7165a1a>
(date-time "+0219850412"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x7167d22>
(date-time "-0219850412"
  :expanded-digits 2) -> #<date-time "-21985-04-12" @ #x716a152>
(date-time "+001985-04-12"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x716c4a2>
(date-time "-001985-04-12"
  :expanded-digits 2) -> #<date-time "-1985-04-12" @ #x716e7e2>
(date-time "+021985-04-12"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x7170b7a>
(date-time "-021985-04-12"
  :expanded-digits 2) -> #<date-time "-21985-04-12" @ #x717303a>
(date-time "+001985-04"
  :expanded-digits 2) -> #<date-time "1985-04" @ #x717541a>
(date-time "-001985-04"
  :expanded-digits 2) -> #<date-time "-1985-04" @ #x71771ca>
(date-time "+021985-04"
  :expanded-digits 2) -> #<date-time "+21985-04" @ #x71790da>
(date-time "-021985-04"
  :expanded-digits 2) -> #<date-time "-21985-04" @ #x717b032>
(date-time "+001985" :expanded-digits 2) -> #<date-time "1985" @ #x717cf8a>
(date-time "-001985" :expanded-digits 2) -> #<date-time "-1985" @ #x717e96a>
(date-time "+021985"
  :expanded-digits 2) -> #<date-time "+21985" @ #x71805f2>
(date-time "-021985"
  :expanded-digits 2) -> #<date-time "-21985" @ #x7182262>
(date-time "+0019" :expanded-digits 2) -> #<date-time "19" @ #x7183ed2>
(date-time "-0019" :expanded-digits 2) -> #<date-time "-19" @ #x718578a>
(date-time "+0219" :expanded-digits 2) -> #<date-time "+219" @ #x7187122>
(date-time "-0219" :expanded-digits 2) -> #<date-time "-219" @ #x7188b02>
(date-time "1985102") -> #<date-time "1985-04-12" @ #x718a4e2>
(date-time "1985-102") -> #<date-time "1985-04-12" @ #x718bfe2>
(date-time "85102") -> #<date-time "85-102" @ #x718db2a>
(date-time "85-102") -> #<date-time "85-102" @ #x718f06a>
(date-time "-102") -> #<date-time "-102" @ #x71905f2>
(date-time "+001985102"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x71919a2>
(date-time "-001985102"
  :expanded-digits 2) -> #<date-time "-1985-04-12" @ #x7193c3a>
(date-time "+021985102"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x7195f02>
(date-time "-021985102"
  :expanded-digits 2) -> #<date-time "-21985-04-12" @ #x719834a>
(date-time "+001985-102"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x719a65a>
(date-time "-001985-102"
  :expanded-digits 2) -> #<date-time "-1985-04-12" @ #x719c93a>
(date-time "+021985-102"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x719ec4a>
(date-time "-021985-102"
  :expanded-digits 2) -> #<date-time "-21985-04-12" @ #x71a10da>
(date-time "1985W155") -> #<date-time "1985-04-12" @ #x71a3432>
(date-time "1985-W15-5") -> #<date-time "1985-04-12" @ #x71a4f22>
(date-time "1985W15") -> #<date-time "1985-W15" @ #x71a6aa2>
(date-time "1985-W15") -> #<date-time "1985-W15" @ #x71a80b2>
(date-time "85W155") -> #<date-time "85-W15-5" @ #x71a970a>
(date-time "85-W15-5") -> #<date-time "85-W15-5" @ #x71aade2>
(date-time "85W15") -> #<date-time "85-W15" @ #x72e5e32>
(date-time "85-W15") -> #<date-time "85-W15" @ #x72ea9c2>
(date-time "-5W155") -> #<date-time "-5-W15-5" @ #x72ebef2>
(date-time "-5-W15-5") -> #<date-time "-5-W15-5" @ #x72ed57a>
(date-time "-5W15") -> #<date-time "-5-W15" @ #x72eec92>
(date-time "-5-W15") -> #<date-time "-5-W15" @ #x72f012a>
(date-time "-W155") -> #<date-time "-W15-5" @ #x72f160a>
(date-time "-W15-5") -> #<date-time "-W15-5" @ #x72f2aa2>
(date-time "-W15") -> #<date-time "-W15" @ #x72f3f82>
(date-time "-W-5") -> #<date-time "-W-5" @ #x72f52e2>
(date-time "+001985W155"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x72f6642>
(date-time "-001985W155"
  :expanded-digits 2) -> #<date-time "-1985-04-10" @ #x72f88ca>
(date-time "+021985W155"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x72fabaa>
(date-time "-021985W155"
  :expanded-digits 2) -> #<date-time "-21985-04-10" @ #x72fcfaa>
(date-time "+001985-W15-5"
  :expanded-digits 2) -> #<date-time "1985-04-12" @ #x72ff2d2>
(date-time "-001985-W15-5"
  :expanded-digits 2) -> #<date-time "-1985-04-10" @ #x73015ea>
(date-time "+021985-W15-5"
  :expanded-digits 2) -> #<date-time "+21985-04-12" @ #x730395a>
(date-time "-021985-W15-5"
  :expanded-digits 2) -> #<date-time "-21985-04-10" @ #x7305dea>
(date-time "+001985W15"
  :expanded-digits 2) -> #<date-time "1985-W15" @ #x73081a2>
(date-time "-001985W15"
  :expanded-digits 2) -> #<date-time "-1985-W15" @ #x7309f4a>
(date-time "+021985W15"
  :expanded-digits 2) -> #<date-time "+21985-W15" @ #x730be52>
(date-time "-021985W15"
  :expanded-digits 2) -> #<date-time "-21985-W15" @ #x730dda2>
(date-time "+001985-W15"
  :expanded-digits 2) -> #<date-time "1985-W15" @ #x730fcf2>
(date-time "-001985-W15"
  :expanded-digits 2) -> #<date-time "-1985-W15" @ #x7311ae2>
(date-time "+021985-W15"
  :expanded-digits 2) -> #<date-time "+21985-W15" @ #x7313a32>
(date-time "-021985-W15"
  :expanded-digits 2) -> #<date-time "-21985-W15" @ #x73159ca>
(date-time "232050" :date nil) -> #<date-time "T23:20:50" @ #x7317962>
(date-time "23:20:50" :date nil) -> #<date-time "T23:20:50" @ #x7319442>
(date-time "2320" :date nil) -> #<date-time "T23:20" @ #x731afb2>
(date-time "23:20" :date nil) -> #<date-time "T23:20" @ #x731c772>
(date-time "23" :date nil) -> #<date-time "T23" @ #x731df7a>
(date-time "232050,5"
  :fraction-digits 1
  :date nil) -> #<date-time "T23:20:50,5" @ #x731f532>
(date-time "232050,51"
  :fraction-digits 2
  :date nil) -> #<date-time "T23:20:50,51" @ #x732211a>
(date-time "23:20:50,5"
  :fraction-digits 1
  :date nil) -> #<date-time "T23:20:50,5" @ #x73248fa>
(date-time "23:20:50,51"
  :fraction-digits 2
  :date nil) -> #<date-time "T23:20:50,51" @ #x73270d2>
(date-time "2320,8"
  :fraction-digits 1
  :date nil) -> #<date-time "T23:20:48" @ #x7329942>
(date-time "2320,81"
  :fraction-digits 2
  :date nil) -> #<date-time "T23:20:48,6" @ #x732bc4a>
(date-time "23:20,8"
  :fraction-digits 1
  :date nil) -> #<date-time "T23:20:48" @ #x732e362>
(date-time "23:20,81"
  :fraction-digits 2
  :date nil) -> #<date-time "T23:20:48,6" @ #x73306b2>
(date-time "23,3"
  :fraction-digits 1
  :date nil) -> #<date-time "T23:18:00" @ #x7332e12>
(date-time "23,31"
  :fraction-digits 2
  :date nil) -> #<date-time "T23:18:36" @ #x733505a>
(date-time "232050,5" :date nil) -> #<date-time "T23:20:50,5" @ #x7337332>
(date-time "232050,51" :date nil) -> #<date-time "T23:20:50,51" @ #x7339252>
(date-time "23:20:50,5" :date nil) -> #<date-time "T23:20:50,5" @ #x733b20a>
(date-time "23:20:50,51"
  :date nil) -> #<date-time "T23:20:50,51" @ #x733d1ba>
(date-time "2320,8" :date nil) -> #<date-time "T23:20:48" @ #x733f36a>
(date-time "2320,81" :date nil) -> #<date-time "T23:20:48,6" @ #x7340e4a>
(date-time "23:20,8" :date nil) -> #<date-time "T23:20:48" @ #x7342d3a>
(date-time "23:20,81" :date nil) -> #<date-time "T23:20:48,6" @ #x7344862>
(date-time "23,3" :date nil) -> #<date-time "T23:18:00" @ #x734679a>
(date-time "23,31" :date nil) -> #<date-time "T23:18:36" @ #x73481ba>
(date-time "-2050" :date nil) -> #<date-time "T-20:50" @ #x7349c52>
(date-time "-20:50" :date nil) -> #<date-time "T-20:50" @ #x734b4ca>
(date-time "-20" :date nil) -> #<date-time "T-20" @ #x734cd8a>
(date-time "--50" :date nil) -> #<date-time "T--50," @ #x734e3c2>
(date-time "-2050,5"
  :fraction-digits 1
  :date nil) -> #<date-time "T-20:50,5" @ #x734faf2>
(date-time "-2050,51"
  :fraction-digits 2
  :date nil) -> #<date-time "T-20:50,51" @ #x7352072>
(date-time "-20:50,5"
  :fraction-digits 1
  :date nil) -> #<date-time "T-20:50,5" @ #x735468a>
(date-time "-20:50,51"
  :fraction-digits 2
  :date nil) -> #<date-time "T-20:50,51" @ #x7356c52>
(date-time "-20,8"
  :fraction-digits 1
  :date nil) -> #<date-time "T-20:48" @ #x73592b2>
(date-time "-20,81"
  :fraction-digits 2
  :date nil) -> #<date-time "T-20:48,6" @ #x735b352>
(date-time "--50,5"
  :fraction-digits 1
  :date nil) -> #<date-time "T--50,5" @ #x735d8a2>
(date-time "--50,51"
  :fraction-digits 2
  :date nil) -> #<date-time "T--50,51" @ #x735fb3a>
(date-time "-2050,5" :date nil) -> #<date-time "T-20:50,5" @ #x7361e6a>
(date-time "-2050,51" :date nil) -> #<date-time "T-20:50,51" @ #x7363bc2>
(date-time "-20:50,5" :date nil) -> #<date-time "T-20:50,5" @ #x73659b2>
(date-time "-20:50,51" :date nil) -> #<date-time "T-20:50,51" @ #x7367752>
(date-time "-20,8" :date nil) -> #<date-time "T-20:48" @ #x736958a>
(date-time "-20,81" :date nil) -> #<date-time "T-20:48,6" @ #x736ae02>
(date-time "--50,5" :date nil) -> #<date-time "T--50,5" @ #x736cb2a>
(date-time "--50,51" :date nil) -> #<date-time "T--50,51" @ #x736e59a>
(date-time "232030Z" :date nil) -> #<date-time "T23:20:30Z" @ #x737008a>
(date-time "2320Z" :date nil) -> #<date-time "T23:20Z" @ #x7371c9a>
(date-time "23Z" :date nil) -> #<date-time "T23Z" @ #x737358a>
(date-time "23:20:30Z" :date nil) -> #<date-time "T23:20:30Z" @ #x7374c5a>
(date-time "23:20Z" :date nil) -> #<date-time "T23:20Z" @ #x73768fa>
(date-time "232030+0100"
  :date nil) -> #<date-time "T23:20:30+01:00" @ #x7378232>
(date-time "2320+0100" :date nil) -> #<date-time "T23:20+01:00" @ #x737a4b2>
(date-time "23+0100" :date nil) -> #<date-time "T23+01:00" @ #x737c2aa>
(date-time "23:20:30+0100"
  :date nil) -> #<date-time "T23:20:30+01:00" @ #x737de82>
(date-time "23:20+0100"
  :date nil) -> #<date-time "T23:20+01:00" @ #x7380192>
(date-time "232030+0120"
  :date nil) -> #<date-time "T23:20:30+01:20" @ #x738213a>
(date-time "2320+0120" :date nil) -> #<date-time "T23:20+01:20" @ #x738441a>
(date-time "23+0120" :date nil) -> #<date-time "T23+01:20" @ #x7386272>
(date-time "23:20:30+0120"
  :date nil) -> #<date-time "T23:20:30+01:20" @ #x7387eaa>
(date-time "23:20+0120"
  :date nil) -> #<date-time "T23:20+01:20" @ #x738a21a>
(date-time "232030+01" :date nil) -> #<date-time "T23:20:30+01" @ #x738c222>
(date-time "2320+01" :date nil) -> #<date-time "T23:20+01" @ #x738e06a>
(date-time "23+01" :date nil) -> #<date-time "T23+01" @ #x738fb92>
(date-time "23:20:30+01"
  :date nil) -> #<date-time "T23:20:30+01" @ #x739149a>
(date-time "23:20+01" :date nil) -> #<date-time "T23:20+01" @ #x73934da>
(date-time "232030+01:00"
  :date nil) -> #<date-time "T23:20:30+01:00" @ #x739504a>
(date-time "2320+01:00"
  :date nil) -> #<date-time "T23:20+01:00" @ #x7397312>
(date-time "23+01:00" :date nil) -> #<date-time "T23+01:00" @ #x73992ba>
(date-time "23:20:30+01:00"
  :date nil) -> #<date-time "T23:20:30+01:00" @ #x739aeda>
(date-time "23:20+01:00"
  :date nil) -> #<date-time "T23:20+01:00" @ #x739d232>
(date-time "152746+0100"
  :date nil) -> #<date-time "T15:27:46+01:00" @ #x739f222>
(date-time "152746-0500"
  :date nil) -> #<date-time "T15:27:46-05:00" @ #x73a14a2>
(date-time "152746+01" :date nil) -> #<date-time "T15:27:46+01" @ #x73a3722>
(date-time "152746-05" :date nil) -> #<date-time "T15:27:46-05" @ #x73a556a>
(date-time "15:27:46+01:00"
  :date nil) -> #<date-time "T15:27:46+01:00" @ #x73a73b2>
(date-time "15:27:46-05:00"
  :date nil) -> #<date-time "T15:27:46-05:00" @ #x73a970a>
(date-time "15:27:46+01"
  :date nil) -> #<date-time "T15:27:46+01" @ #x73aba62>
(date-time "15:27:46-05"
  :date nil) -> #<date-time "T15:27:46-05" @ #x73adaa2>
(date-time "19850412T101530") -> #<date-time "1985-04-12T10:15:30" @
                                      #x73afae2>
(date-time "19850412 101530") -> #<date-time "1985-04-12T10:15:30" @
                                      #x73b29c2>
(date-time "19850412T101530Z") -> #<date-time
                                       "1985-04-12T10:15:30Z"
                                       @
                                       #x73b58a2>
(date-time "19850412 101530Z") -> #<date-time
                                       "1985-04-12T10:15:30Z"
                                       @
                                       #x73ba09a>
(date-time "19850412T101530+0400") -> #<date-time
                                           "1985-04-12T10:15:30+04:00"
                                           @
                                           #x73be892>
(date-time "19850412 101530+0400") -> #<date-time
                                           "1985-04-12T10:15:30+04:00"
                                           @
                                           #x73c38f2>
(date-time "19850412T101530+04") -> #<date-time
                                         "1985-04-12T10:15:30+04"
                                         @
                                         #x73c8952>
(date-time "19850412 101530+04") -> #<date-time
                                         "1985-04-12T10:15:30+04"
                                         @
                                         #x73cd532>
(date-time "1985-04-12T10:15:30") -> #<date-time
                                          "1985-04-12T10:15:30"
                                          @
                                          #x73d2112>
(date-time "1985-04-12 10:15:30") -> #<date-time
                                          "1985-04-12T10:15:30"
                                          @
                                          #x73d6b82>
(date-time "1985-04-12T10:15:30Z") -> #<date-time
                                           "1985-04-12T10:15:30Z"
                                           @
                                           #x73db5f2>
(date-time "1985-04-12 10:15:30Z") -> #<date-time
                                           "1985-04-12T10:15:30Z"
                                           @
                                           #x73e026a>
(date-time "1985-04-12T10:15:30+04:00") -> #<date-time
                                                "1985-04-12T10:15:30+04:00"
                                                @
                                                #x73e4ee2>
(date-time "1985-04-12 10:15:30+04:00") -> #<date-time
                                                "1985-04-12T10:15:30+04:00"
                                                @
                                                #x73ea4e2>
(date-time "1985-04-12T10:15:30+04") -> #<date-time
                                             "1985-04-12T10:15:30+04"
                                             @
                                             #x73efae2>
(date-time "1985-04-12 10:15:30+04") -> #<date-time
                                             "1985-04-12T10:15:30+04"
                                             @
                                             #x73f4b42>
(date-time "19850412T1015") -> #<date-time "1985-04-12T10:15" @ #x73f9ba2>
(date-time "19850412 1015") -> #<date-time "1985-04-12T10:15" @ #x73fbbda>
(date-time "1985-04-12T10:15") -> #<date-time
                                       "1985-04-12T10:15"
                                       @
                                       #x73fdc12>
(date-time "1985-04-12 10:15") -> #<date-time
                                       "1985-04-12T10:15"
                                       @
                                       #x7402092>
(date-time "1985102T1015Z") -> #<date-time "1985-04-12T10:15Z" @ #x7406512>
(date-time "1985102 1015Z") -> #<date-time "1985-04-12T10:15Z" @ #x7408662>
(date-time "1985-102T10:15Z") -> #<date-time "1985-04-12T10:15Z" @
                                      #x740a7b2>
(date-time "1985-102 10:15Z") -> #<date-time "1985-04-12T10:15Z" @
                                      #x740d51a>
(date-time "1985W155T1015+0400") -> #<date-time
                                         "1985-04-12T10:15+04:00"
                                         @
                                         #x7410282>
(date-time "1985W155 1015+0400") -> #<date-time
                                         "1985-04-12T10:15+04:00"
                                         @
                                         #x7414dea>
(date-time "1985-W15-5T10:15+04") -> #<date-time
                                          "1985-04-12T10:15+04"
                                          @
                                          #x7419952>
(date-time "1985-W15-5 10:15+04") -> #<date-time
                                          "1985-04-12T10:15+04"
                                          @
                                          #x741e39a>
(date-time "19850412") -> #<date-time "1985-04-12" @ #x7422de2>
(date-time "1985-04-12") -> #<date-time "1985-04-12" @ #x74248fa>
(date-time "850412") -> #<date-time "85-04-12" @ #x74264a2>
(date-time "85-04-12") -> #<date-time "85-04-12" @ #x7427c22>
(date-time "1985102") -> #<date-time "1985-04-12" @ #x7429432>
(date-time "1985-102") -> #<date-time "1985-04-12" @ #x742af32>
(date-time "85102") -> #<date-time "85-102" @ #x742ca7a>
(date-time "85-102") -> #<date-time "85-102" @ #x742dfba>
(date-time "1985W155") -> #<date-time "1985-04-12" @ #x742f542>
(date-time "1985-W15-5") -> #<date-time "1985-04-12" @ #x7431032>
(date-time "85W155") -> #<date-time "85-W15-5" @ #x7432bb2>
(date-time "85-W15-5") -> #<date-time "85-W15-5" @ #x743428a>
(date-time "1985W15") -> #<date-time "1985-W15" @ #x74359f2>
(date-time "1985-W15") -> #<date-time "1985-W15" @ #x7437002>
(date-time "85W15") -> #<date-time "85-W15" @ #x743865a>
(date-time "85-W15") -> #<date-time "85-W15" @ #x7439b42>
(date-time "1985-04") -> #<date-time "1985-04" @ #x743b072>
(date-time "-8504") -> #<date-time "-85-04" @ #x743c68a>
(date-time "-85-04") -> #<date-time "-85-04" @ #x743dbd2>
(date-time "1985") -> #<date-time "1985" @ #x743f162>
(date-time "-85") -> #<date-time "-85" @ #x7440512>
(date-time "+0119850412"
  :expanded-digits 2) -> #<date-time "+11985-04-12" @ #x7441832>
(date-time "+011985-04-12"
  :expanded-digits 2) -> #<date-time "+11985-04-12" @ #x7443c62>
(date-time "-00020412"
  :expanded-digits 0) -> #<date-time "-0002-04-12" @ #x7446122>
(date-time "-0002-04-12"
  :expanded-digits 0) -> #<date-time "-0002-04-12" @ #x74483e2>
(date-time "152746" :date nil) -> #<date-time "T15:27:46" @ #x744a732>
(date-time "15:27:46" :date nil) -> #<date-time "T15:27:46" @ #x744c212>
(date-time "-2746" :date nil) -> #<date-time "T-27:46" @ #x744dd82>
(date-time "-27:46" :date nil) -> #<date-time "T-27:46" @ #x744f5fa>
(date-time "1528" :date nil) -> #<date-time "T15:28" @ #x7450eba>
(date-time "15:28" :date nil) -> #<date-time "T15:28" @ #x745267a>
(date-time "-28" :date nil) -> #<date-time "T-28" @ #x7453e82>
(date-time "15" :date nil) -> #<date-time "T15" @ #x74554ba>
(date-time "152735,5"
  :date nil
  :fraction-digits 1) -> #<date-time "T15:27:35,5" @ #x7456a72>
(date-time "15:27:35,5"
  :date nil
  :fraction-digits 1) -> #<date-time "T15:27:35,5" @ #x74591ba>
(date-time "-2735,5"
  :date nil
  :fraction-digits 1) -> #<date-time "T-27:35,5" @ #x745b992>
(date-time "-27:35,5"
  :date nil
  :fraction-digits 1) -> #<date-time "T-27:35,5" @ #x745df12>
(date-time "152735,5" :date nil) -> #<date-time "T15:27:35,5" @ #x74604da>
(date-time "15:27:35,5" :date nil) -> #<date-time "T15:27:35,5" @ #x74623fa>
(date-time "-2735,5" :date nil) -> #<date-time "T-27:35,5" @ #x74643aa>
(date-time "-27:35,5" :date nil) -> #<date-time "T-27:35,5" @ #x7466102>
(date-time "000000" :date nil) -> #<date-time "T00:00:00" @ #x7467e8a>
(date-time "00:00:00" :date nil) -> #<date-time "T00:00:00" @ #x7469922>
(date-time "0000" :date nil) -> #<date-time "T00:00" @ #x746b44a>
(date-time "00:00" :date nil) -> #<date-time "T00:00" @ #x746cc0a>
(date-time "240000" :date nil) -> #<date-time "T24:00:00" @ #x746e412>
(date-time "24:00:00" :date nil) -> #<date-time "T24:00:00" @ #x746feaa>
(date-time "2400" :date nil) -> #<date-time "T24:00" @ #x74719d2>
(date-time "24:00" :date nil) -> #<date-time "T24:00" @ #x7473192>
(date-time "232030Z" :date nil) -> #<date-time "T23:20:30Z" @ #x747499a>
(date-time "23:20:30Z" :date nil) -> #<date-time "T23:20:30Z" @ #x74765aa>
(date-time "2320Z" :date nil) -> #<date-time "T23:20Z" @ #x747824a>
(date-time "23:20Z" :date nil) -> #<date-time "T23:20Z" @ #x7479b3a>
(date-time "23Z" :date nil) -> #<date-time "T23Z" @ #x747b472>
(date-time "152746+0100"
  :date nil) -> #<date-time "T15:27:46+01:00" @ #x747cb42>
(date-time "15:27:46+01:00"
  :date nil) -> #<date-time "T15:27:46+01:00" @ #x747edc2>
(date-time "152746+01" :date nil) -> #<date-time "T15:27:46+01" @ #x748111a>
(date-time "15:27:46+01"
  :date nil) -> #<date-time "T15:27:46+01" @ #x7482f62>
(date-time "152746-0500"
  :date nil) -> #<date-time "T15:27:46-05:00" @ #x7484fa2>
(date-time "15:27:46-05:00"
  :date nil) -> #<date-time "T15:27:46-05:00" @ #x7487222>
(date-time "152746-05" :date nil) -> #<date-time "T15:27:46-05" @ #x748957a>
(date-time "15:27:46-05"
  :date nil) -> #<date-time "T15:27:46-05" @ #x748b3c2>
(date-time "19850412T101530") -> #<date-time "1985-04-12T10:15:30" @
                                      #x748d402>
(date-time "19850412 101530") -> #<date-time "1985-04-12T10:15:30" @
                                      #x74902e2>
(date-time "1985-04-12T10:15:30") -> #<date-time
                                          "1985-04-12T10:15:30"
                                          @
                                          #x74931c2>
(date-time "1985-04-12 10:15:30") -> #<date-time
                                          "1985-04-12T10:15:30"
                                          @
                                          #x7497c32>
(date-time "850412T101530") -> #<date-time "85-04-12T10:15:30" @ #x749c6a2>
(date-time "850412 101530") -> #<date-time "85-04-12T10:15:30" @ #x749e662>
(date-time "85-04-12T10:15:30") -> #<date-time
                                        "85-04-12T10:15:30"
                                        @
                                        #x74a0622>
(date-time "85-04-12 10:15:30") -> #<date-time
                                        "85-04-12T10:15:30"
                                        @
                                        #x74a4b4a>
(date-time "1985102T235030") -> #<date-time "1985-04-12T23:50:30" @
                                     #x74a9072>
(date-time "1985102 235030") -> #<date-time "1985-04-12T23:50:30" @
                                     #x74abef2>
(date-time "1985-102T23:50:30") -> #<date-time
                                        "1985-04-12T23:50:30"
                                        @
                                        #x74aed72>
(date-time "1985-102 23:50:30") -> #<date-time
                                        "1985-04-12T23:50:30"
                                        @
                                        #x74b35d2>
(date-time "85102T235030") -> #<date-time "85-102T23:50:30" @ #x74b7e32>
(date-time "85102 235030") -> #<date-time "85-102T23:50:30" @ #x74b9bb2>
(date-time "85-102T23:50:30") -> #<date-time "85-102T23:50:30" @ #x74bb932>
(date-time "85-102 23:50:30") -> #<date-time "85-102T23:50:30" @ #x74bd78a>
(date-time "1985W155T235030") -> #<date-time "1985-04-12T23:50:30" @
                                      #x74bf5e2>
(date-time "1985W155 235030") -> #<date-time "1985-04-12T23:50:30" @
                                      #x74c249a>
(date-time "1985-W15-5T23:50:30") -> #<date-time
                                          "1985-04-12T23:50:30"
                                          @
                                          #x74c5352>
(date-time "1985-W15-5 23:50:30") -> #<date-time
                                          "1985-04-12T23:50:30"
                                          @
                                          #x74c9d9a>
(date-time "85W155T235030") -> #<date-time "85-W15-5T23:50:30" @ #x74ce7e2>
(date-time "85W155 235030") -> #<date-time "85-W15-5T23:50:30" @ #x74d06fa>
(date-time "85-W15-5T23:50:30") -> #<date-time
                                        "85-W15-5T23:50:30"
                                        @
                                        #x74d2612>
(date-time "85-W15-5 23:50:30") -> #<date-time
                                        "85-W15-5T23:50:30"
                                        @
                                        #x74d6a92>
(date-time "1865-04-14") -> #<date-time "1865-04-14" @ #x74daf12>

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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version