Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: gmtimeChapter 8
Standard Modules
Next: 8.159 Time::gmtime
 

gmctime

$gmc = gmctime()

Overrides the core gmtime function in scalar context; returns a string with the date and time:

use Time::gmtime;
$gmc = gmctime();
print $gmc;
Then the output of the print command looks like:
Thu Apr 9 18:15:06 1998


Previous: Reference: gmtimePerl in a NutshellNext: 8.159 Time::gmtime
Reference: gmtimeBook Index8.159 Time::gmtime