in reply to Epoch mod time for files
You're comparing GM time to your local time for one thing. Why not just do this?
$time = time();
It is possible to set a file's modification time ahead of the current time on most systems (see touch on UNIX for example). But in practice things will probably appear as expected if both times you use are relative to the same time zone.
|
|---|