Problems? Is your data what you think it is? | |
PerlMonks |
Re: Sorting The Date format Values without using any perl modules.by john_oshea (Priest) |
on Dec 26, 2005 at 15:02 UTC ( [id://519150]=note: print w/replies, xml ) | Need Help?? |
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? ;-)
In Section
Seekers of Perl Wisdom
|
|