470,849 Members | 652 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Timezone conversion

I'am looking for a php script to make a time conversion between timezones.
Any idea ?

Thanks in advance,

Jeanine
Dec 21 '05 #1
2 4034
Jeanine wrote:
I'am looking for a php script to make a time conversion between
timezones. Any idea ?


You can simply apply putenv() for this with an appropriate timezone setting:

Examples:

putenv ('TZ=Europe/Amsterdam');
echo date("H:i:s");

Or:

putenv ('TZ=Europe/Moscow');
echo date("H:i:s");

Available timezones: http://www.php.net/manual/en/timezones.php
JW
Dec 21 '05 #2
On Wed, 21 Dec 2005 19:18:25 +0100, "Jeanine" <Je*****@nomail.notvalid> wrote:
I'am looking for a php script to make a time conversion between timezones.


http://pear.php.net/package/Date

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Dec 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jim Davis | last post: by
1 post views Thread by cnliou | last post: by
1 post views Thread by mimmo | last post: by
6 posts views Thread by Bijoy Naick | last post: by
reply views Thread by Ninja Zombie | last post: by
1 post views Thread by mmv | last post: by
2 posts views Thread by Benjamin The Donkey | last post: by
1 post views Thread by Ajinkya | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.