Re: timezone algorithm

From: Wannabee (no_at_mail.thanks)
Date: 03/04/05


Date: Fri, 4 Mar 2005 08:47:52 +0200


"Rikard"
> Hi
>
> Looking for a function that returns the timezone for any given point.
> I want to feed it with longitude and latitude.
>
> any ideas?

If you are a navigator on _sea_, the timezone (in hours) is simply longitude
(in degrees) divided through 15. Round the result to the nearest integer.
Positive for west longitudes and negative for east longitudes. Latitude
doesn't matter. What you got is a zone constant which added to ZT (zone
time) gives UT.

If you mean timezones on _land_, that is much more complicated. It would be
a little easier to talk about _countries_ rather than latitudes and
longitudes. Some countries have many different timezones. Different
countries may have a different timezone on the same longitude. The timezone
is not allways an integral number of hours. There is also often "daylight
saving time" / "summer time" used. The dates when the change "normal time" -
"summer time" is made in different countries are not very simple and clear.
That means latitude and longitude alone cannot tell the timezone for the
whole year. In addition to latitude and longitude you would also need the
date and time (and maybe even the year).

It may be quite hard to make this valid everywhere and perfect. If you are
satisfied with a partial and/or approximate solution, it might be easier.
Ignore "summer time"? If you really want lat & long as the arguments, you
need to know what are borders of timezones in different countries and inside
which borders does the particular point (lat & long) fall ... seems like a
lot of work?



Relevant Pages

  • Re: OT Frappr info (long!)
    ... For other countries, try a google search of the name of your country and ... for example Canada GNIS and you may well turn up a server that will ... WARNED -- you need to know your latitude and longitude for this one! ...
    (rec.crafts.textiles.quilting)
  • Re: timezone algorithm
    ... "Jim" wrote in message ... >>Looking for a function that returns the timezone for any given point. ... > 15 degrees longitude, latitude doesn't really matter. ...
    (comp.lang.java.programmer)
  • Re: Trying to convert from Latitude/Longitude to Radar plot?
    ... RF strength data. ... For simplicity, I will designate latitude and longitudes as. ... Suppose the original coordinates are in A and B (longitude) ... > I have taken a series of RF field strength measurements of an FM ...
    (microsoft.public.excel.charting)
  • Re: Conversions
    ... the North and East coordinates would have to be ... projected from latitude and longitude for them to have a conversion back to ... point to be rotated and where the RotatedDirection is the calulated ...
    (sci.geo.satellite-nav)
  • Re: estimating error in my GPS position.
    ... longitude coordinate and convert them to meters. ... longitude and latitude data respectively. ... The manual says the GPS is good to within 30m but this is for the ... on the surface of the ocean. ...
    (sci.geo.satellite-nav)