From 1d7866d46848330b9e06283fd4ee7818710486bb Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Wed, 8 Oct 2014 22:34:07 +0900 Subject: [PATCH] Adding extra struct tm accessors. --- lib/chibi/time.sld | 3 ++- lib/chibi/time.stub | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/chibi/time.sld b/lib/chibi/time.sld index 1d64c6e3..df1e0a3e 100644 --- a/lib/chibi/time.sld +++ b/lib/chibi/time.sld @@ -5,7 +5,8 @@ make-timeval make-tm timeval-seconds timeval-microseconds timezone-offset timezone-dst-time 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?) (cond-expand ((or bsd linux) diff --git a/lib/chibi/time.stub b/lib/chibi/time.stub index b6ef9180..abba475d 100644 --- a/lib/chibi/time.stub +++ b/lib/chibi/time.stub @@ -17,7 +17,9 @@ (int tm_year time-year) (int tm_wday time-day-of-week) (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. ;;/