Re: Lat/Lon to Local Time



Sam Wormley wrote:
Anna wrote:
I am writing a program that must calculate local time from
latitude/longitude. I realize this is not a trivial undertaking, given
the social and political issues of time zones. However, it seems to me
that there are programs I've seen that surely must know the algorithm.
Table based lookup is highly undesirable but will do if there are no
other solutions available.

Does anyone know how this is done?


In astronomy...

Longitude to local time
GMT ± (Longitude/15) = local time

I actually must go by political local times, not UT. So although I'd
love to write that ONE line of code, it's not what they have asked of
me. I am sure I am going to have to use a table for all the different
political boundaries. I guess I was just hoping that the solution was
small enough I could avoid it.

.



Relevant Pages

  • Re: Lat/Lon to Local Time
    ... Phil Wheeler wrote... ... latitude/longitude. ... I realize this is not a trivial undertaking, ... the social and political issues of time zones. ...
    (sci.geo.satellite-nav)
  • Re: Lat/Lon to Local Time
    ... David Lee wrote: ... latitude/longitude. ... I realize this is not a trivial undertaking, ... the social and political issues of time zones. ...
    (sci.geo.satellite-nav)
  • Re: Lat/Lon to Local Time
    ... Anna wrote: ... latitude/longitude. ... I realize this is not a trivial undertaking, ... Given the gerrymandered time zones, like a lat-long table look up is required. ...
    (sci.geo.satellite-nav)
  • Re: Lat/Lon to Local Time
    ... Anna wrote: ... latitude/longitude. ... I realize this is not a trivial undertaking, ... the social and political issues of time zones. ...
    (sci.geo.satellite-nav)
  • Lat/Lon to Local Time
    ... I am writing a program that must calculate local time from ... latitude/longitude. ... I realize this is not a trivial undertaking, ...
    (sci.geo.satellite-nav)