Name

gmctime

Synopsis

$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

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.