whoops, didn't think of that.

Then I guess you'd have to loop through each item and find the oldest value. If you want just the oldest item, I'd suggesting using $ctime, which is just the amount of time in seconds from date. You can convert it to a normal form of date also. I suggest using $ctime since the smaller the number the older the date and the easier to compare it is.