Fixing time? to handle a timeval or (timeval timezone) pair.

This commit is contained in:
Alex Shinn 2012-03-15 22:58:32 +09:00
parent 3c3666ad68
commit 1afb807699

View file

@ -1,6 +1,6 @@
(define current-time get-time-of-day) (define current-time get-time-of-day)
(define time? timeval?) (define (time? x) (timeval? (if (pair? x) (car x) x)))
(define (time->seconds x) (define (time->seconds x)
(timeval-seconds (if (pair? x) (car x) x))) (timeval-seconds (if (pair? x) (car x) x)))