RE: [PHP] time



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


.



Relevant Pages

  • Re: Need a little help thanks
    ... > be done with PHP so I figured I would ask for a ... > the column so a person can compare the total results for what they checked ... JavaScript or on the server with PHP ... Tom Thackrey www.creative-light.com tom creative light com do NOT send email to jamesbutler@willglen.net ...
    (alt.php)
  • Re: fc3, sendmail, dovecot: cannot receive from outside
    ... The primary dns server is right on this machine or on 10.0.0.12 ... Split DNS is not, how to say, "off ... see what I can discover there and then just compare and compare and, ... just think it out even more and see what I can discover. ...
    (Fedora)
  • Re: RECORD COMPARISON
    ... It's a database I use to collect server ... So I just need to compare the existing data with the new incoming ... It's sql server 2000 enterprise, ... and also related records; ...
    (microsoft.public.dotnet.framework.adonet)
  • detecting unchanged images
    ... I am polishing a snapshot webcam viewer. ... image the server sent me is the exact same one it sent before (or if I ... checksum of the bits and compare them, ...
    (comp.lang.java.programmer)
  • Re: Protect Project Version ???
    ... Compare Project Versions add-in, available from Microsoft at: ... "We wrote the book on Project Server" ... >>> have used it as a method of archiving projects when their completed, ... Server 2003 administrator services for a team of project managers. ...
    (microsoft.public.project.pro_and_server)