Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Bottling time

by simeon2000 (Monk)
on Jul 31, 2002 at 12:56 UTC ( [id://186487]=note: print w/replies, xml ) Need Help??


in reply to Bottling time

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.

--
<code>perl -e "print qq/just another perl hacker who doesn't grok japh\n/"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found