timezone algorithm

R

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?
 
J

Jim

Hi

Looking for a function that returns the timezone for any given point.
I want to feed it with longitude and latitude.

any ideas?

The trivial timezone algorithm is +/- 1 hour for every
15 degrees longitude, latitude doesn't really matter.

The bad news is there are very few time zones that
are that neatly arranged. See the following

http://aa.usno.navy.mil/faq/docs/world_tzones.html

As you can see, as long as you're out over water
(most of time) you're ok, but get anywhere close
to where people live........

Jim
 
A

Alun Harford

Jim said:
The trivial timezone algorithm is +/- 1 hour for every
15 degrees longitude, latitude doesn't really matter.

The bad news is there are very few time zones that
are that neatly arranged. See the following

http://aa.usno.navy.mil/faq/docs/world_tzones.html

As you can see, as long as you're out over water
(most of time) you're ok, but get anywhere close
to where people live........
And that doesn't take into account places that change their clocks depending
on the time of year.

Alun Harford
 
R

Rhino

Alun Harford said:
And that doesn't take into account places that change their clocks depending
on the time of year.
Or who change it by unusual amounts. Although the norm is to move the clocks
ahead one hour for summer time, some areas move their clocks forward
different amounts. I've heard of two hours and even of one place that moves
their clocks only 15 minutes.

And some places don't participate in daylight savings time at all. I think
Saskatchewan is on permanent summer time - or is it "double summer time"?

Rhino
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top