diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-02-22 17:14:28 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-02-22 17:14:28 -0500 |
commit | d564505f72518910bfb835a53b697d64613b6240 (patch) | |
tree | 76632ecea9a60482f64eead4aa1bce661b1924a0 /doc/gawk.texi | |
parent | 5db38f775d9ba239e125d81dff2010a2ddacb48e (diff) | |
download | egawk-d564505f72518910bfb835a53b697d64613b6240.tar.gz egawk-d564505f72518910bfb835a53b697d64613b6240.tar.bz2 egawk-d564505f72518910bfb835a53b697d64613b6240.zip |
Add optional 2nd argument to mktime to request UTC instead of local time.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 220dfb86..01bc1a5c 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -19039,7 +19039,7 @@ Optional parameters are enclosed in square brackets ([ ]): @c @asis for docbook @table @asis -@item @code{mktime(@var{datespec})} +@item @code{mktime(@var{datespec}} [@code{, @var{utc-flag}} ]@code{)} @cindexgawkfunc{mktime} @cindex generate time values Turn @var{datespec} into a timestamp in the same form @@ -19058,7 +19058,9 @@ The values of these numbers need not be within the ranges specified; for example, an hour of @minus{}1 means 1 hour before midnight. The origin-zero Gregorian calendar is assumed, with year 0 preceding year 1 and year @minus{}1 preceding year 0. -The time is assumed to be in the local time zone. +If @var{utc-flag} is present and is either nonzero or non-null, the time +is assumed to be in the UTC time zone; otherwise, the +time is assumed to be in the local time zone. If the daylight-savings flag is positive, the time is assumed to be daylight savings time; if zero, the time is assumed to be standard time; and if negative (the default), @code{mktime()} attempts to determine |