start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: localtime Chapter 8
Standard Modules
Next: 8.161 Time::localtime
 

ctime

$

ct

 
= ctime()

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


Previous: Reference: localtime Perl in a Nutshell Next: 8.161 Time::localtime
Reference: localtime Book Index 8.161 Time::localtime