in reply to Re^2: Age of dir in UNIX
in thread Age of dir in UNIX

I tested this on debian, creating new files/directories, running the code, waiting for a few minutes and running the code again. It worked every time. Try adding some debug statements, perhaps the values aren't what you expect them to be.