| [reply] [Watch: Dir/Any] |
You could probably use Time::Mock or Test::MockTime. | [reply] [Watch: Dir/Any] |
Hi,
If you are on Linux, you can just use the date command and can change the date and time to future date and you can do the test.
Changing the date and time:
Changing the date and time requires two steps. First, Linux's date and time must be changed and then the new time has to be written to the hardware clock.
The date command can be used for both viewing and changing the date and time.
| [reply] [Watch: Dir/Any] [d/l] |
Yeah, I was hoping not to need to touch any part of the system or environment (ie, changing the actual date even if it's not written to hardware - synctohc). However, overriding the functions with *CORE::GLOBAL should work (since it's done on compile time and should affect all modules that call those functions).
| [reply] [Watch: Dir/Any] |
Is it possible to tag the data into the past thus making it appear expired without needing to touch the "real" time? | [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
Yes, Time::Mock seems to do what I want (I haven't looked to see if using Test::TimeMock would be better for my needs yet). Thanks
| [reply] [Watch: Dir/Any] |