Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Formatting Datetime objects nicely

by hashED (Novice)
on Nov 28, 2007 at 17:06 UTC ( [id://653581]=note: print w/replies, xml ) Need Help??

in reply to Formatting Datetime objects nicely

You could whip one up yourself using Date::Manip. See and look at ParseDate( ) in particular. You can use it to parse a wide range of date formats into something easy to crunch (you may also appreciate unixdate( ) from the same package). Then, use your favorite conditional logic tom-fooleration method to figure out whether the date is today's, yesterdays, tomorrows, or some other date (use localtime() with no arguments to get today's date and time... there is certainly another way, and probably a better one to do that..) and return whatevah you want. So fun! So easy! So custom! Now if I could just learn to make my own shirts...

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-16 01:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found