Perl - Time

perl

$x = time();  // returns number of seconds since January 1, 1970
$x = time; // returns number of seconds since January 1, 1970

@x = gmtime(argument);    // argument is the value returned by time()
($sec, $min, $hour, $month_day, $month, $year, $weekday, $yearday, $daylightsaving) = @x;

@x = gmtime(time);
@x = localtime(time);
($sec, $min, $hour, $month_day, $month, $year, $weekday, $yearday, $daylightsaving)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License