mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-08 05:27:35 +02:00
Fixing time? to handle a timeval or (timeval timezone) pair.
This commit is contained in:
parent
3c3666ad68
commit
1afb807699
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
|
||||
(define current-time get-time-of-day)
|
||||
(define time? timeval?)
|
||||
(define (time? x) (timeval? (if (pair? x) (car x) x)))
|
||||
|
||||
(define (time->seconds x)
|
||||
(timeval-seconds (if (pair? x) (car x) x)))
|
||||
|
|
Loading…
Add table
Reference in a new issue