From: Paul Date: 2011-06-08T02:10:33+09:00 Subject: Re: Ruby 1.9 Time parse question On Jun 7, 10:58 am, Robert Klemme wrote: > > Btw, I'd rather convert strings on insertion into the Array.  It's > usually best to convert input into specific types when one sees it. > Then you can use all the specific Date / Time / DateTime functionality > in your application and only convert back to string when you output > results.  Also, often specific data needs less memory than data left > in strings.  Also, converting only once is more efficient than doing > it over and over again.  In your case you could as well use > Array#sort_by to convert each timestamp only once. > Hello Robert, I was thinking the same thing. The biggest difference is between re-writing two sort routines and re-writing a third of the entire program. Looks like I have some refactoring to do this week.. Cheers! Paul.