28.12.2012, 13:08
Well to tell the truth i didn't found any bug in gettime(), it return the time in second in GMT +0.
And the gettime() depends on how the machine's time is set, because it return the time of the machine.
Here is the proof:
The code will print this:
The first line is the gettime() function.
The second line is the PHP time() function.
And the gettime() depends on how the machine's time is set, because it return the time of the machine.
Here is the proof:
Код:
public OnFilterScriptInit()
{
HTTP(0, HTTP_GET, "webadmin.gc4.hu/asd.php", "", "TestIt");
return true;
}
forward TestIt(index, response_code, data[]);
public TestIt(index, response_code, data[])
{
printf("%d", gettime());
print(data);
}
Код:
[15:36:54] 1356705414 [15:36:54] 1356705416
The second line is the PHP time() function.

