|Don't ask to ask, just ask|
|on Aug 24, 1999 at 22:43 UTC||Need Help??|
See the current Perl documentation for gmtime.
Here is our local, out-dated (pre-5.6) version:
gmtime - convert UNIX time into record or string using Greenwich time
Converts a time as returned by the time function to a 9-element array with the time localized for the standard Greenwich time zone. Typically used as follows:
# 0 1 2 3 4 5 6 7 8 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time);
All array elements are numeric, and come straight out of a struct tm. In
particular this means that
EXPR is omitted, does
In scalar context, returns the
$now_string = gmtime; # e.g., "Thu Oct 13 04:54:34 1994"
Also see the
This scalar value is not locale dependent, see the perllocale manpage, but instead a Perl builtin. Also see the
use POSIX qw(strftime); $now_string = strftime "%a %b %e %H:%M:%S %Y", gmtime;
Note that the