This content has been marked as final. Show 7 replies
I don't know of any extension but you can do it yourself easily enough.
BTW, this doesn't do anything with time zone. If you have something other than GMT, you will need one more manipulation.
Thanks a lot for the input. This looks very promising. I'm implementing right now.
Because of the predictability of the time stamp, it makes the sort fairly straightforward and an ASCII sort works just fine. I only tested briefly. I will not absolutely swear that I got the sort order right. That bit always confuses me because it always seems backwards to what I think it should be. That's whay I left "put_date_together" sticking out like a sore thumb. If any adjustments have to be made, it will be there.
It's strange when I change some dates around to this:
dates = ["Thu, 14 Feb 2008 22:48:00 GM", "Fri, 07 Mar 2008 13:08:54 GM","Sat, 11 Oct 2004 09:13:07 GM","Mon, 21 Jan 2008 17:26:33 GM", "Sat, 09 Oct 2004 07:13:09 GM", "Sat, 11 Oct 2004 07:12:07 GM"];
I'm getting this output:
Sat, 09 Oct 2004 07:13:09 GM
Sat, 11 Oct 2004 07:12:07 GM
Sat, 11 Oct 2004 09:13:07 GM
Fri, 07 Mar 2008 13:08:54 GM
Thu, 14 Feb 2008 22:48:00 GM
Mon, 21 Jan 2008 17:26:33 GM
March, February, and January aren't getting sorted correctly.
Here's a slightly different way to do it.
I actually solved that problem by switching the month_to_number var around:
var put_date_together = split_date_time+month_to_number+split_date_time;
Worked great after that.