Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 21st, 2005, 06: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, 09: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, 01: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

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles