Can ephem easily determine local timezone? #226
Replies: 1 comment 1 reply
-
Alas, no: that would be a question for a geography library, which would have to have a map of the time zones across the entire planet. A search for "python translate latitude longitude into time zone" brings up: https://stackoverflow.com/questions/15742045/getting-time-zone-from-lat-long-coordinates It looks like |
Beta Was this translation helpful? Give feedback.
-
I use ephem to determine local twilight for a large number of points.
I also need to determine the timezone for these points. To do so, I currently use
tzwhere
but it is a) unsupported and b) a bit flakey.If I could calculate both time of day and timezone with one function using ephem, that would be a huge win.
Beta Was this translation helpful? Give feedback.
All reactions