Closed ghost closed 2 years ago
I just wrote some code with (chibi time), and the following line produced an unexpected result:
(chibi time)
> (time-year (seconds->time (timeval-seconds (car (get-time-of-day))))) 122
Apparently, years are counted from 1900?
The rest of the time-@ procedures are do what I expect them to do.
time-@
This is WAI, time is a direct interface to struct tm, and as such is a low-level API.
Use SRFI 19 or (chibi chrono) for a high-level API (https://github.com/ashinn/alschemist/blob/master/chibi/chrono.sld).
I just wrote some code with
(chibi time)
, and the following line produced an unexpected result:Apparently, years are counted from 1900?
The rest of the
time-@
procedures are do what I expect them to do.