#| -*-Scheme-*-
-$Id: datime.scm,v 14.5 1995/04/15 06:09:46 cph Exp $
+$Id: datime.scm,v 14.6 1995/04/15 06:28:23 cph Exp $
Copyright (c) 1988-95 Massachusetts Institute of Technology
((> number high) high)
(else number)))))
(let ((month (limit 1 month 12)))
- (make-decoded-time
- (limit 0 second 59)
- (limit 0 minute 59)
- (limit 0 hour 23)
- (limit 1 day (vector-ref days-per-month (- month 1)))
- month
- (if (< year 0) 0 year)))))
+ (make-decoded-time (limit 0 second 59)
+ (limit 0 minute 59)
+ (limit 0 hour 23)
+ (limit 1 day (month/max-days month))
+ month
+ (if (< year 0) 0 year)))))
(define (month/max-days month)
(guarantee-month month 'MONTH/MAX-DAYS)
#| -*-Scheme-*-
-$Id: os2prm.scm,v 1.10 1995/04/15 06:12:21 cph Exp $
+$Id: os2prm.scm,v 1.11 1995/04/15 06:29:04 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
(time (quotient time 32))
(month (remainder time 16))
(year (quotient time 16)))
- (make-decoded-time (limit 0 (* twosecs 2) 59)
- (limit 0 minutes 59)
- (limit 0 hours 23)
- (limit 1 day 31)
- (limit 1 month 12)
- (+ 1980 year))))
+ (make-decoded-time (* twosecs 2) minutes hours day month (+ 1980 year))))
(define (file-attributes filename)
((ucode-primitive file-info 1)