Link to home
Start Free TrialLog in
Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal

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:
 
<?php 
$localtime = localtime(); 
$localtime_assoc = localtime(time(), true); 
echo "<pre>"; 
print_r($localtime); 
echo "</pre>"; 
echo "<pre>"; 
print_r($localtime_assoc); 
echo "</pre>"; 
?>

Open in new window


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
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial