I have some PHP4 code in which I need to restore the system time after some code execution. I am looking for a simple statement with which I can store the current date/time, and restore it afterwards:
$oTime = function1();
...
do something else
...
function2($oTime);
In PHP5 you can pretty straightforward use date_timestamp_get()
and date_timestamp_set()
, but how to achieve this most simple if you have to use PHP4?
P.S. No questions about why I use PHP4. I don't like it either...