From: HarryO Date: 2001-12-21T09:10:52+09:00 Subject: [ruby-talk:29183] Re: Dir and Stat on windows On Fri, 21 Dec 2001 08:28:18 +1100, Steve Tuckner wrote: This seems like the "right" way to do it, but I'm wondering whether it might actually be faster to let "ls -l" do the work of getting everything from the file system and then just parsing the output and using mktime to convert the text timestamps into real Time objects. In fact, if you use "ls -lt", you could probably avoid a lot of the conversions by doing a binary search on the lines output by the ls and only converting the times as you need them for comparison purposes. Of course, you were probably actually just interested in understanding the profiler output :-).