Common Lisp Package: NET.TELENT.DATE

README:

FUNCTION

Public

DAYNAME (STREAM ARG COLON-P AT-P &OPTIONAL WIDTH (MINCOL 0) (COLINC 1) (MINPAD 0) (PADCHAR ))

Print the day of the week (0=Sunday) corresponding to ARG on STREAM. This is intended for embedding in a FORMAT directive: WIDTH governs the number of characters of text printed, MINCOL, COLINC, MINPAD, PADCHAR work as for ~A

MONTHNAME (STREAM ARG COLON-P AT-P &OPTIONAL WIDTH (MINCOL 0) (COLINC 1) (MINPAD 0) (PADCHAR ))

Print the name of the month (1=January) corresponding to ARG on STREAM. This is intended for embedding in a FORMAT directive: WIDTH governs the number of characters of text printed, MINCOL, COLINC, MINPAD, PADCHAR work as for ~A

PARSE-TIME (TIME-STRING &KEY (START 0) (END (LENGTH TIME-STRING)) (ERROR-ON-MISMATCH NIL) (PATTERNS *DEFAULT-DATE-TIME-PATTERNS*) (DEFAULT-SECONDS NIL) (DEFAULT-MINUTES NIL) (DEFAULT-HOURS NIL) (DEFAULT-DAY NIL) (DEFAULT-MONTH NIL) (DEFAULT-YEAR NIL) (DEFAULT-ZONE NIL) (DEFAULT-WEEKDAY NIL))

Tries very hard to make sense out of the argument time-string and returns a single integer representing the universal time if successful. If not, it returns nil. If the :error-on-mismatch keyword is true, parse-time will signal an error instead of returning nil. Default values for each part of the time/date can be specified by the appropriate :default- keyword. These keywords can be given a numeric value or the keyword :current to set them to the current value. The default-default values are 00:00:00 on the current date, current time-zone.

SECOND (LIST)

Return the 2nd object in a list or NIL if there is no 2nd object.

UNIVERSAL-TIME-TO-HTTP-DATE (UTIME)

Decode the universal time UTIME and return a date suitable for use in HTTP 1.0 applications (RFC-822, but GMT)

UNIVERSAL-TIME-TO-RFC-DATE (UTIME)

Decode the universal time UTIME and return a date suitable for use in HTTP 1.0 applications (RFC-822, but GMT)

UNIVERSAL-TIME-TO-RFC2822-DATE (UTIME &OPTIONAL TIME-ZONE)

Decode the universal time UTIME and return an RFC-2822-format string. TIME-ZONE is a CL time zone. If not supplied, it defaults to the current time zone adjusted for daylight saving time. If TIME-ZONE is supplied, daylight saving time information is ignored.

Undocumented

DECODE-UNIVERSAL-TIME/PLIST (UTIME &OPTIONAL ZONE)

HOUR (NUMBER)

MINUTE (NUMBER)

MONTH (THING)

SETFSECOND (G101 G102)

YEAR (NUMBER)

ZONE (THING)

Private

DECODED-TIME-DAY (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-DOTW (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-HOUR (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-MINUTE (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-MONTH (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-SECOND (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-YEAR (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

DECODED-TIME-ZONE (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

Undocumented

AM-PM (STRING)

CONVERT-TO-UNITIME (PARSED-VALUES)

COPY-DECODED-TIME (INSTANCE)

DATE-DIVIDER (CHARACTER)

DAY (NUMBER)

DEAL-WITH-AM-PM (FORM-VALUE PARSED-VALUES)

DEAL-WITH-IZONE (FORM-VALUE PARSED-VALUES)

DEAL-WITH-NOON-MIDN (FORM-VALUE PARSED-VALUES)

SETFDECODED-TIME-DAY (NEW-VALUE INSTANCE)

SETFDECODED-TIME-DOTW (NEW-VALUE INSTANCE)

SETFDECODED-TIME-HOUR (NEW-VALUE INSTANCE)

SETFDECODED-TIME-MINUTE (NEW-VALUE INSTANCE)

SETFDECODED-TIME-MONTH (NEW-VALUE INSTANCE)

DECODED-TIME-P (OBJECT)

SETFDECODED-TIME-SECOND (NEW-VALUE INSTANCE)

SETFDECODED-TIME-YEAR (NEW-VALUE INSTANCE)

SETFDECODED-TIME-ZONE (NEW-VALUE INSTANCE)

DECOMPOSE-STRING (STRING &KEY (START 0) (END (LENGTH STRING)) (RADIX 10))

IZONE (THING)

MAKE-DECODED-TIME (&KEY ((SECOND DUM31) 0) ((MINUTE DUM32) 0) ((HOUR DUM33) 0) ((DAY DUM34) 1) ((MONTH DUM35) 1) ((YEAR DUM36) 1900) ((ZONE DUM37) 0) ((DOTW DUM38) 0))

MAKE-DEFAULT-TIME (DEF-SEC DEF-MIN DEF-HOUR DEF-DAY DEF-MON DEF-YEAR DEF-ZONE DEF-DOTW)

MATCH-PATTERN (PATTERN DATUM DATUM-LENGTH)

MATCH-PATTERN-ELEMENT (PATTERN-ELEMENT DATUM-ELEMENT)

MATCH-SUBSTRING (SUBSTRING)

NOON-MIDN (STRING)

NOW (PARSED-VALUES)

SECONDP (NUMBER)

SET-CURRENT-VALUE (VALUES-STRUCTURE &KEY (TIME NIL) (DATE NIL) (ZONE NIL))

SET-TIME-VALUES (STRING-FORM PARSED-VALUES)

SPECIAL-STRING-P (STRING)

TIME-DIVIDER (CHARACTER)

TODAY (PARSED-VALUES)

TOMORROW (PARSED-VALUES)

WEEKDAY (STRING)

YESTERDAY (PARSED-VALUES)

MACRO

Public

WITH-DATE (UTIME ZONE &BODY BODY)

UTIME is a universal-time, ZONE is a number of hours offset from UTC, or NIL to use local time. Execute BODY in an environment where SECOND MINUTE HOUR DAY-OF-MONTH MONTH YEAR DAY-OF-WEEK DAYLIGHT-P ZONE are bound to the decoded components of the universal time

WITH-DECODING ((UTIME &OPTIONAL ZONE) &BODY BODY)

UTIME is a universal-time, ZONE is a number of hours offset from UTC, or NIL to use local time. Execute BODY in an environment where SECOND MINUTE HOUR DAY-OF-MONTH MONTH YEAR DAY-OF-WEEK DAYLIGHT-P ZONE are bound to the decoded components of the universal time

Private

Undocumented

HASHLIST (LIST TABLE)

VARIABLE

Private

*ERROR-ON-MISMATCH*

If t, an error will be signalled if parse-time is unable to determine the time/date format of the string.

Undocumented

*DAY-NAMES*

*DEFAULT-DATE-TIME-PATTERNS*

*HTTP-DATE-TIME-PATTERNS*

*MONTH-NAMES*

*MONTH-STRINGS*

*SPECIAL-STRINGS*

*WEEKDAY-STRINGS*

*ZONE-STRINGS*

DATE-DIVIDERS

MONTH-TABLE-SIZE

SPECIAL-TABLE-SIZE

TIME-DIVIDERS

WEEKDAY-TABLE-SIZE

WHITESPACE-CHARS

ZONE-TABLE-SIZE

CLASS

Private

Undocumented

DECODED-TIME