perldoc
Time::localtime
DESCRIPTION
This module's default exports override the core localtime() function ...
perldoc
POSIX
localtime
This is identical to Perl's builtin "localtime()" function for
converting seconds since the epoch to a date see "localtime" in
perlfunc.
This is mostly true. The difference is that
POSIX::localtime demands you pass it an argument, while
CORE::localtime does not (it assumes the value of time):
C:\>perl -e"die ~~localtime"
Sat Jun 21 05:23:53 2003 at -e line 1.
C:\>perl -MPOSIX=localtime -e"die ~~localtime"
Usage: POSIX::localtime(time) at -e line 1
C:\>
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" |
| I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). |
| ** The third rule of perl club is a statement of fact: pod is sexy. |