[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Date/time package
Arthur A. Gleckler scripsit:
> > (define last-january new-york '((year . 2012) (month-of-year . 1)))
>
> This one looks malformed.
Woops, yes, the last four lines should be:
(define last-january (make-date new-york-zone
'((year . 2012) (month-of-year . 1))))
(define last-december (date-increment last-january 'month-of-year -1))
(date-field last-december 'month-of-year) => 12
(date-field last-december 'year) => 2011
--
After fixing the Y2K bug in an application: John Cowan
WELCOME TO <censored> cowan@x
DATE: MONDAK, JANUARK 1, 1900 http://www.ccil.org/~cowan
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports