Name
ctime
Synopsis
$ct
= ctime()
Description
Overrides the core localtime
function
in scalar context; returns a string with the date and time:
use Time::gmtime; $ct = ctime(); print $ct
Then the output of the print
command looks like:
Thu Apr 9 16:50:10 1998
Get Perl in a Nutshell 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.