RE: [PHP] time
- From: bob@xxxxxxxxxxxxxxx ("Bob Dusek")
- Date: Tue, 30 Jan 2007 09:29:03 -0500
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:richardkurth@xxxxxxxxxxxxxx]
Sent: Tuesday, January 30, 2007 12:12 AM
To: php-general@xxxxxxxxxxxxx
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
- Prev by Date: mb_send_mail + multipart e-mail - why is this so difficult?
- Next by Date: convert date to reversed date
- Previous by thread: Re: [PHP] time
- Next by thread: RE: [PHP] time
- Index(es):
Relevant Pages
|