If you have the timezone offset stored for each contact, you can compare
that to the timezone offset of the server and do the math on a timestamp
value.
// return value format: hhmm
// -0500 for US/EST, -5 hours relative to GMT
$timeZoneOfServer = date("O");
> -----Original Message-----
> From: Richard Kurth [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 12:12 AM
> To: [email protected]
> Subject: RE: [PHP] time
>
> [snip]
> I am writing a program for managing leads and contacts. I
> would like to add
> the ability to see what TIME it is where the contact is not
> there server
> time. So if you looked at a list of contacts from all over
> the country you
> would see different times compared to what time it is where
> the user is at.
> What should I be looking at to calculate out the different time zones.
> Could
> somebody just point me in the write direction at this time I
> have no idea on
> how to proceeded.
> [/snip]
>
> You would use JavaScript to capture their local 'browser'
> time and process
> it with PHP
>
> I am not looking for something where I am on line with these
> people some do
> not have internet access. I would be calling them on the phone.
> I need a way to get the time at there location using what
> info I already
> have like the address zip code and phone number. It would
> probably have to
> be compared to a database of some sort or the time zone file on a lynx
> server.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php