summaryrefslogtreecommitdiff
path: root/pod/perlport.pod
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2008-09-29 11:44:44 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-01-03 18:38:46 +0100
commitdc164757d6434bcc04e6bf2256aab2dea31afaa0 (patch)
treefbd73c2c6530a99c5f84ace7d616af20f5aa780c /pod/perlport.pod
parent948ea7a98bccf1ca837e75b5ea71b67365367ec4 (diff)
downloadperl-dc164757d6434bcc04e6bf2256aab2dea31afaa0.tar.gz
Update some docs to explain that Perl no longer has a 2038 bug.
Diffstat (limited to 'pod/perlport.pod')
-rw-r--r--pod/perlport.pod12
1 files changed, 4 insertions, 8 deletions
diff --git a/pod/perlport.pod b/pod/perlport.pod
index f8fb1fea0e..8a72de246f 100644
--- a/pod/perlport.pod
+++ b/pod/perlport.pod
@@ -641,9 +641,6 @@ The value for C<$offset> in Unix will be C<0>, but in Mac OS will be
some large number. C<$offset> can then be added to a Unix time value
to get what should be the proper value on any system.
-On Windows (at least), you shouldn't pass a negative value to C<gmtime> or
-C<localtime>.
-
=head2 Character sets and character encoding
Assume very little about character sets.
@@ -1863,7 +1860,7 @@ platforms. See L<File::Glob> for portability information.
=item gmtime
-Same portability caveats as L<localtime>.
+gmtime() has a range of about 2 billion years before and after 1970.
=item ioctl FILEHANDLE,FUNCTION,SCALAR
@@ -1914,10 +1911,9 @@ Available on 64 bit OpenVMS 8.2 and later. (VMS)
=item localtime
-Because Perl currently relies on the native standard C localtime()
-function, it is only safe to use times between 0 and (2**31)-1. Times
-outside this range may result in unexpected behavior depending on your
-operating system's implementation of localtime().
+localtime() has the same range as L<gmtime>, but because time zone
+rules change its accuracy for historical and future times may degrade
+but usually by no more than an hour.
=item lstat