net-telent-date

net-telent-date is a Library consisting mostly of the time parsing routines from CMUCL that were removed from SBCL. Additionally it has a universal-time -> rfc822 date convertor.

Download ASDF package from http://ww.telent.net/cclan/net-telent-date.tar.gz

* (let ((p (find-package :net.telent.date))) (do-external-symbols (i p) (when (eql (symbol-package i) p) (cond ((fboundp i) (format t "~A~%" (cons i (sb-introspect:function-arglist i))) (when (documentation i 'function) (format t "   ~A~%" i))) (t (format t "~A~%" i))))))
DAY-OF-MONTH
(ZONE THING)
(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)
(MINUTE NUMBER)
(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.
(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
DAYLIGHT-P
(HOUR NUMBER)
DAY-OF-WEEK
(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.
(MONTH THING)
(YEAR NUMBER)
(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
(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
(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)
(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
NIL

This page is linked from: CLiki Installation   philip-jose  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively