laziness, impatience, and hubris | |
PerlMonks |
Re: Bottling timeby simeon2000 (Monk) |
on Jul 31, 2002 at 12:56 UTC ( [id://186487]=note: print w/replies, xml ) | Need Help?? |
Well, I would definitely store the UNIX datestamp in the database with the time() function as an unsigned integer or maybe a bigint. But if you don't have Date::Manip as suggested above, the code scalar(localtime($time)) prints out a very nicely formatted date string in the same way that the UNIX date command does. --
In Section
Seekers of Perl Wisdom
|
|