Posted by NC on 07/07/06 05:50
Hoopster wrote:
>
> <?php
> echo date("H:i:s");
> ?>
>
> However, my server is 2 hours difference from me. What is
> the exact command that I can use to offset it.
Since you forgot to mention whether the server is two hours ahead or
two hours behind, here are your options:
echo date('H:i:s', time() + 2*60*60);
echo date('H:i:s', time() - 2*60*60);
Cheers,
NC
[Back to original message]
|