Mega Code Archive
Categories
/
Perl
/
Data Type
Set the value of localtime to a scalar variable, youll get a typical UNIX-style time
#!/usr/bin/perl -w $t = time(); $now = localtime($t); print "Time is: $now\n";