You are here: Re: Time help « PHP Programming Language « IT news, forums, messages
Re: Time help

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация