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.1 | |
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.1')
-rw-r--r-- | doc/gawk.1 | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3105,7 +3105,7 @@ provides the following functions for obtaining time stamps and formatting them. .PP .TP "\w'\fBsystime()\fR'u+1n" -\fBmktime(\fIdatespec\fB)\fR +\fBmktime(\fIdatespec\fR [\fB, \fIutc-flag\fR]\fB)\fR Turn .I datespec into a time stamp of the same form as returned by @@ -3127,7 +3127,11 @@ The values of these numbers need not be within the ranges specified; for example, an hour of \-1 means 1 hour before midnight. The origin-zero Gregorian calendar is assumed, with year 0 preceding year 1 and year \-1 preceding year 0. -The time is assumed to be in the local timezone. +If +.I utc-flag +is present and is non-zero or non-null, the time is assumed to be in +the UTC timezone; otherwise, the +time is assumed to be in the local timezone. If the daylight saving flag is positive, the time is assumed to be daylight saving time; if zero, the time is assumed to be standard time; |