mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-29 00:10:21 +02:00
(Time): In tm:gmtoff, give example values, note not the
same as C tm_gmtoff.
This commit is contained in:
parent
0ebff347ec
commit
0d74bd6eef
1 changed files with 7 additions and 0 deletions
|
@ -1170,6 +1170,13 @@ Daylight saving indicator (0 for ``no'', greater than 0 for ``yes'', less than
|
|||
@deffn {Scheme Procedure} tm:gmtoff tm
|
||||
@deffnx {Scheme Procedure} set-tm:gmtoff tm val
|
||||
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
|
||||
@deffn {Scheme Procedure} tm:zone tm
|
||||
@deffnx {Scheme Procedure} set-tm:zone tm val
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue