Pedro Chagas
asked on
Php localtime function
Hi E's, I try to use the localtime function, and I get this example from php.net for I made a test:
My doubts is if localtime work with server hour or if work and give me the exact hour where I play the script.
I'm in Portugal, and the script output give me the right hour.
I want to see if work in other parts of the world. Can you give me your locations and the output please?
The best regards, JC
<?php
$localtime = localtime();
$localtime_assoc = localtime(time(), true);
echo "<pre>";
print_r($localtime);
echo "</pre>";
echo "<pre>";
print_r($localtime_assoc);
echo "</pre>";
?>
My doubts is if localtime work with server hour or if work and give me the exact hour where I play the script.
I'm in Portugal, and the script output give me the right hour.
I want to see if work in other parts of the world. Can you give me your locations and the output please?
The best regards, JC
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.