(check-range day 1 (month/max-days month))
(check-range hour 0 23)
(check-range minute 0 59)
- (check-range second 0 59)))
+ (check-range second 0 60)))
(define (compute-day-of-week day month year)
;; This implements Zeller's Congruence.
(define parse-rfc2822-year (number-parser 4 4 1900 9999))
(define parse-rfc2822-hour (number-parser 2 2 0 23))
(define parse-rfc2822-minute (number-parser 2 2 0 59))
-(define parse-rfc2822-second (number-parser 2 2 0 59))
+(define parse-rfc2822-second (number-parser 2 2 0 60))
(define match-lws
(*matcher (+ (char-set char-set:wsp))))
(define parse-ctime-hour (number-parser 2 2 0 23))
(define parse-ctime-minute (number-parser 2 2 0 59))
-(define parse-ctime-second (number-parser 2 2 0 59))
+(define parse-ctime-second (number-parser 2 2 0 60))
(define parse-ctime-day1 (number-parser 1 1 1 9))
(define parse-ctime-day2 (number-parser 2 2 10 31))
(define parse-ctime-year (number-parser 4 4 1900 9999))
(define parse-8601-hour (number-parser 2 2 0 24))
(define parse-8601-zone-hour (number-parser 2 2 0 24))
(define parse-8601-minute (number-parser 2 2 0 59))
-(define parse-8601-second (number-parser 2 2 0 59))
+(define parse-8601-second (number-parser 2 2 0 60))
(define parse-8601-sign
(*parser
(define parse-rfc850-day (number-parser 2 2 1 31))
(define parse-rfc850-hour (number-parser 2 2 0 23))
(define parse-rfc850-minute (number-parser 2 2 0 59))
-(define parse-rfc850-second (number-parser 2 2 0 59))
+(define parse-rfc850-second (number-parser 2 2 0 60))
\f
;;;; Utilities