ag4ve has asked for the wisdom of the Perl Monks concerning the following question:
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).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: time change (ex::override core function)
by Anonymous Monk on Feb 18, 2014 at 14:02 UTC | |
Re: time change
by trwww (Priest) on Feb 18, 2014 at 15:01 UTC | |
Re: time change
by tweetiepooh (Hermit) on Feb 18, 2014 at 15:46 UTC | |
by Laurent_R (Canon) on Feb 18, 2014 at 21:50 UTC | |
by ag4ve (Monk) on Feb 20, 2014 at 04:52 UTC | |
Re: time change
by vinoth.ree (Monsignor) on Feb 18, 2014 at 14:31 UTC | |
by ag4ve (Monk) on Feb 18, 2014 at 14:37 UTC |
Back to
Seekers of Perl Wisdom