1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-29 08:20:20 +02:00

(Time): In tm:gmtoff, give example values, note not the

same as C tm_gmtoff.
This commit is contained in:
Kevin Ryde 2006-06-25 01:05:55 +00:00
parent 0ebff347ec
commit 0d74bd6eef

View file

@ -1170,6 +1170,13 @@ Daylight saving indicator (0 for ``no'', greater than 0 for ``yes'', less than
@deffn {Scheme Procedure} tm:gmtoff tm @deffn {Scheme Procedure} tm:gmtoff tm
@deffnx {Scheme Procedure} set-tm:gmtoff tm val @deffnx {Scheme Procedure} set-tm:gmtoff tm val
Time zone offset in seconds west of @acronym{UTC} (-46800 to 43200). Time zone offset in seconds west of @acronym{UTC} (-46800 to 43200).
For example on East coast USA (zone @samp{EST+5}) this would be 18000
(ie.@: @m{5\times60\times60,5*60*60}) in winter, or 14400
(ie.@: @m{4\times60\times60,4*60*60}) during daylight savings.
Note @code{tm:gmtoff} is not the same as @code{tm_gmtoff} in the C
@code{tm} structure. @code{tm_gmtoff} is seconds east and hence the
negative of the value here.
@end deffn @end deffn
@deffn {Scheme Procedure} tm:zone tm @deffn {Scheme Procedure} tm:zone tm
@deffnx {Scheme Procedure} set-tm:zone tm val @deffnx {Scheme Procedure} set-tm:zone tm val