in reply to Database time or just time

localtime() returns a 9 element list. It is typically used as follows:
($sec,$min,$hour,$mday,$mon,$year,$wday,$year,$isdst) = localtime(time +);
(Page 185 of "Programming Perl", 2nd ed.)