get the time offset from GMT from latitude longitude

Posted by ravun on Stack Overflow See other posts from Stack Overflow or by ravun
Published on 2009-06-29T13:34:28Z Indexed on 2010/03/27 7:23 UTC
Read the original article Hit count: 388

Filed under:
|
|
|

Is there a way to estimate the offset from GMT (or time zone) from a latitude/longitude? I've seen geonames, but this would need to work long term and we don't really want to rely on a web service. It'd just be used for determining whether to display "today" or "tonight" when giving information to various users so it wouldn't need to be too accurate (an hour or two off wouldn't be bad).

© Stack Overflow or respective owner

Related posts about latitude

Related posts about longitude