$ ct = ctime()
ct
Overrides the core localtime function in scalar context; returns a string with the date and time:
localtime
use Time::gmtime; $ct = ctime(); print $ct
print
Thu Apr 9 16:50:10 1998
Copyright © 2001 O'Reilly & Associates. All rights reserved.