PHP find local time by Time Zone
<p>Example, I have time zone is : "Europe/London" or "America/Los_Angeles"</p>

<p>In Perl, I can look up for Local Time by:</p>

<pre><code>use DateTime;
use DateTime::TimeZone;

$timeZoneName = "MY TIME ZONE HERE";
$timeZone     = DateTime::TimeZone-&gt;new(name =&gt; $timeZoneName);
$timeNow      = time();
$dateTime     = DateTime-&gt;from_epoch(epoch =&gt; $timeNow);
$offset       = $timeZone-&gt;offset_for_datetime($dateTime);
$localTime    = $timeNow + $offset;
print "$localTime";
</code></pre>

<p>But I don't know how to look up local time with PHP, anyone help?</p>
