summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-07 02:58:31 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-07 02:58:31 +0000
commit82dd32fecdeb69374a147926c73169afe36ca489 (patch)
tree9b53a57f4a67f9acace81916253834e8a34c7779 /pod/perlfunc.pod
parent0a78cd5d546a6120b099fe63d90fd0c2559380f5 (diff)
downloadperl-82dd32fecdeb69374a147926c73169afe36ca489.tar.gz
Fix documentation for gmtime().
p4raw-id: //depot/perl@26024
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod9
1 files changed, 5 insertions, 4 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 3138eb9fa0..2ec4e823fa 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -2277,12 +2277,12 @@ X<gmtime> X<UTC> X<Greenwich>
=item gmtime
-Converts a time as returned by the time function to an 8-element list
+Converts a time as returned by the time function to an 9-element list
with the time localized for the standard Greenwich time zone.
Typically used as follows:
- # 0 1 2 3 4 5 6 7
- ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) =
+ # 0 1 2 3 4 5 6 7 8
+ ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
gmtime(time);
All list elements are numeric, and come straight out of the C `struct
@@ -2292,7 +2292,8 @@ itself, in the range C<0..11> with 0 indicating January and 11
indicating December. $year is the number of years since 1900. That
is, $year is C<123> in year 2023. $wday is the day of the week, with
0 indicating Sunday and 3 indicating Wednesday. $yday is the day of
-the year, in the range C<0..364> (or C<0..365> in leap years.)
+the year, in the range C<0..364> (or C<0..365> in leap years). $isdst
+is always C<0>.
Note that the $year element is I<not> simply the last two digits of
the year. If you assume it is then you create non-Y2K-compliant