What's the best way to change the time that time, gmtime, and localtime (and TimeDate which seems to use time()) returns? I was kind of hoping that someone had written a module to do this, but I can't find anything. I want to temporarily change the time to be a week into the future to test some time dependent code (data gets deleted after it is stale and I want this tested).
In reply to time change
by ag4ve