Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Sorting The Date format Values without using any perl modules.

by john_oshea (Priest)
on Dec 26, 2005 at 15:02 UTC ( #519150=note: print w/ replies, xml ) Need Help??


in reply to Sorting The Date format Values without using any perl modules.

Use Time::Local to convert the dates to 'seconds since epoch' values, sort them, then use localtime or gmtime to convert back to a human-readable format. This assumes you want the dates sorted chronologically, and not by month or day number...

Or does that count as a 'Date Sort' module? ;-)


Comment on Re: Sorting The Date format Values without using any perl modules.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-07-31 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls