From: James E Keenan Date: Tue, 26 Sep 2017 12:52:15 +0000 (-0400) Subject: Document that POSIX::localtime needs explicit argument. X-Git-Tag: v5.27.5~99 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/dc416353138cab69d334678ddd9a81b590030ef2 Document that POSIX::localtime needs explicit argument. For: RT #132145 --- diff --git a/ext/POSIX/lib/POSIX.pod b/ext/POSIX/lib/POSIX.pod index d3f9e89..9d2c032 100644 --- a/ext/POSIX/lib/POSIX.pod +++ b/ext/POSIX/lib/POSIX.pod @@ -24,7 +24,7 @@ interfaces. This document gives a condensed list of the features available in the POSIX module. Consult your operating system's manpages for general information on most features. Consult L for functions which are noted as being -identical to Perl's builtin functions. +identical or almost identical to Perl's builtin functions. The first section describes POSIX functions from the 1003.1 specification. The second section describes some classes for signal objects, TTY objects, @@ -958,7 +958,15 @@ POSIX.1-2008 and are only available on systems that support them. =item C This is identical to Perl's builtin C function for -converting seconds since the epoch to a date see L. +converting seconds since the epoch to a date see L except +that C must be provided an explicit value (rather than +relying an implicit C<$_>: + + @localtime = POSIX::localtime(time); # Good + + @localtime = localtime(); # Good + + @localtime = POSIX::localtime(); # Throws exception =item C