Connecting Tech Pros Worldwide Help | Site Map

Timezone conversion

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 21st, 2005, 05:55 PM
Jeanine
Guest
 
Posts: n/a
Default Timezone conversion

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

Thanks in advance,

Jeanine



  #2  
Old December 21st, 2005, 08:15 PM
Janwillem Borleffs
Guest
 
Posts: n/a
Default Re: Timezone conversion

Jeanine wrote:[color=blue]
> I'am looking for a php script to make a time conversion between
> timezones. Any idea ?
>[/color]

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


  #3  
Old December 22nd, 2005, 12:45 AM
Andy Hassall
Guest
 
Posts: n/a
Default Re: Timezone conversion

On Wed, 21 Dec 2005 19:18:25 +0100, "Jeanine" <Jeanine@nomail.notvalid> wrote:
[color=blue]
>I'am looking for a php script to make a time conversion between timezones.[/color]

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

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.