in reply to Timestamp conditional

I usually use the simpler
if ((-M '/tmp/file') > $ageThreshold) {
to test the modify time. (or -A or -C for the access or change time on unix). See the documentation for file tests.

Two things to note

Ususally, neither of these is a problem.