Re: Lat/Lon to Local Time
- From: "Anna" <annalahoud@xxxxxxxxx>
- Date: 3 Jul 2006 08:36:00 -0700
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.
.
- Follow-Ups:
- Re: Lat/Lon to Local Time
- From: Jack Erbes
- Re: Lat/Lon to Local Time
- From: Roger Mills
- Re: Lat/Lon to Local Time
- References:
- Lat/Lon to Local Time
- From: Anna
- Re: Lat/Lon to Local Time
- From: Sam Wormley
- Lat/Lon to Local Time
- Prev by Date: Re: 60CSx - Routing problem?
- Next by Date: Re: 60CSx - Routing problem?
- Previous by thread: Re: Lat/Lon to Local Time
- Next by thread: Re: Lat/Lon to Local Time
- Index(es):
Relevant Pages
|