Adding extra struct tm accessors.

This commit is contained in:
Alex Shinn 2014-10-08 22:34:07 +09:00
parent 60ca91f19a
commit 1d7866d468
2 changed files with 5 additions and 2 deletions

View file

@ -5,7 +5,8 @@
make-timeval make-tm timeval-seconds timeval-microseconds make-timeval make-tm timeval-seconds timeval-microseconds
timezone-offset timezone-dst-time timezone-offset timezone-dst-time
time-second time-minute time-hour time-day time-month time-year time-second time-minute time-hour time-day time-month time-year
time-day-of-week time-day-of-year time-dst? time-day-of-week time-day-of-year time-dst? time-timezone-name
time-offset
tm? timeval? timezone?) tm? timeval? timezone?)
(cond-expand (cond-expand
((or bsd linux) ((or bsd linux)

View file

@ -17,7 +17,9 @@
(int tm_year time-year) (int tm_year time-year)
(int tm_wday time-day-of-week) (int tm_wday time-day-of-week)
(int tm_yday time-day-of-year) (int tm_yday time-day-of-year)
(int tm_isdst time-dst?)) (int tm_isdst time-dst?)
(string tm_zone time-timezone-name)
(int tm_gmtoff time-offset))
;;> Accessors for the \scheme{tm} struct. ;;> Accessors for the \scheme{tm} struct.
;;/ ;;/