0

I have an application with test suite. These test need to be runned in specific period (a date between 01-01-2012 and 31-12-2012).

Is it possible to force returned date (to scripts like php, python) instead system clock in a virtual host ?

2
  • Do you mean that you want to set the system clock?
    – MadHatter
    Sep 9, 2013 at 15:13
  • No, when a scipt (php, python, etc) ask date: return a forced date instead system clock.
    – bux
    Sep 9, 2013 at 15:20

1 Answer 1

0

Of course it is possible, you just have to write the logic to do it. Look into the mktime function for php. Not sure on python.

But aside from that, I am not sure what your real question is (taking that I do not think English is your first language). You can always change the system clock of the VPS to be the time you need prior to running the script.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .