mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-12 23:47:34 +02:00
Adding extra struct tm accessors.
This commit is contained in:
parent
60ca91f19a
commit
1d7866d468
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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.
|
||||||
;;/
|
;;/
|
||||||
|
|
Loading…
Add table
Reference in a new issue