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>                   [email protected]
        DATE: MONDAK, JANUARK 1, 1900           http://www.ccil.org/~cowan

_______________________________________________
Scheme-reports mailing list
[email protected]
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports

Reply via email to