On 20-Jun-01 Jason wrote:
> Hey,
>
> I wanted to see if anybody has a some ideas or code for a good time zone
> coversion function.
>
> Basically, I would like something where the user can input their timezone
> (or if php doesn't recognize timezones, maybe just the current time for
> them, and it can caluculate the difference, but timezones would be
> preferred). They then enter a time (hh:mm am/pm) which is not local to them,
> and the function will output a time that has been converted to their
> timezone.
>
putenv("TZ=CST6CDT");
$tm=mktime( ...
putenv("$TZ=PST8PDT");
echo date('Y-m-d h:i', $tz);
> Basically i just want users to be able to take a non-local time and get the
> local time in their timezone with it. This will be for US times only also.
>
> Thanks a bunch!
>
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]