Time Zones via GPS anyone know?
mctrivia
Posts: 3,772
I am trying to figure out how to find the current time zone when I know the longitude and latitude but can't find any kind of map or code snipet to do this. anyone know how?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
Comments
http://24timezones.com/
Post Edit -- The whole of Red China is on Peking time.
Post Edited (PJ Allen) : 5/14/2010 1:02:12 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
how do you find the time zone for a gps?
And the first link on the list provided some clues.
http://www.vbrad.com/article.aspx?id=35
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
0 N, 0E = __; 0N, 1E = __;...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
"Standard time zones can be defined by geometrically subdividing the Earth's spheroid into 24 lunes (wedge-shaped sections), bordered by meridians each 15° of longitude apart. The local time in neighboring zones would differ by one hour. However, political boundaries, geographical practicalities, and convenience of inhabitants can result in irregularly-shaped zones. Moreover, in a few regions, half-hour or quarter-hour differences are in effect."
http://en.wikipedia.org/wiki/Time_zone
With a calculator/computer it is relitively easy to compute if a location is within a triangular region. If we made a map of the world out of triangles I would first search for all triangles anywear near my location then compute if I am within any of them
for example the following code generates a search query of my picture database to see if there are any pictures close to the designated location. It is quick and dirty but it reduces the large database down to a small number of results which I can then do more accurate calculations on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
http://worldtimeengine.com/dotime/n49.837405_w99.934820/
where n49.837405_w99.934820 is the location. should not be to hard to parse and gives all needed info.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lots of propeller based products in stock at affordable prices.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
http://www.zipinfo.com/products/z5p/z5p.htm I'll bet there is also a listing of lat/lon for establishing zip by GPS.
local coastline's timezone would apply? This page seems to answer these questions and mentions the tricky problem of working out maps of territorial v. internation waters:
http://efele.net/maps/tz/world/
That timezone service is very nice, they have lots of other good stuff there as well. The response will be even easier to parse if you ask for JSON format.
Request:
http://ws.geonames.org/timezoneJSON?lat=49.837405&lng=-99.934820
Respnse:
{"time":"2013-02-03 08:31",
"countryName":"Canada",
"sunset":"2013-02-03 17:37",
"rawOffset":-6,
"dstOffset":-5,
"countryCode":"CA",
"gmtOffset":-6,
"lng":-99 .93482,
"sunrise":"2013-02-03 08:10",
"timezoneId":"America/Winnipeg",
"lat":49.837405
}
Over 1 billion 344 million people have just one time zone! Odd, very odd.
But it seems no one has mentioned the other bugaboo, Daylight Savings Time. And of course, there is double daylight savings, war time, and other adjustments that overlay time zones.
I presume the goal is to determine what time the person at a given location thinks it should be.
Please note the offset in the above listing -- raw offsett, dst offset, and gmt offset.