X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=datetime.lisp;h=b3dbc1a47f895895e549064059d876202c0b5a74;hb=12026eac09e773e83887a6073d5a034979ce7043;hp=348cf58c60a0f8453cdbc0b672d2fafe8758b297;hpb=373a64e9369c2e96c465eb462a035884c7e08fa6;p=kmrcl.git diff --git a/datetime.lisp b/datetime.lisp index 348cf58..b3dbc1a 100644 --- a/datetime.lisp +++ b/datetime.lisp @@ -7,8 +7,6 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id$ -;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; ;;;; KMRCL users are granted the rights to distribute and use this software @@ -45,7 +43,7 @@ (multiple-value-bind (sec min hr day mon year dow daylight-p zone) (decode-universal-time ut) (declare (ignore daylight-p zone)) - (format nil "~[Mon~;Tue~;Wed~;Thu~;Fri~;Sat~;Sun~], ~d ~[Jan~;Feb~;Mar~;Apr~;May~;Jun~;Jul~;Aug~;Sep~;Oct~;Nov~;Dec~] ~d ~2,'0d:~2,'0d:~2,'0d" + (format nil "~[Mon~;Tue~;Wed~;Thu~;Fri~;Sat~;Sun~] ~d ~[Jan~;Feb~;Mar~;Apr~;May~;Jun~;Jul~;Aug~;Sep~;Oct~;Nov~;Dec~] ~d ~2,'0d:~2,'0d:~2,'0d" dow day (1- mon) @@ -112,7 +110,7 @@ (defun day-of-week (year month day) "Day of week calculation using Zeller's Congruence. -Input: The year y, month m (1 ≤ m ≤ 12) and day d (1 ≤ d ≤ 31). +Input: The year y, month m (1 <= m <= 12) and day d (1 <= d <= 31). Output: n - the day of the week (Sunday = 0, Saturday = 6)." (when (< month 3)