I think it is not possible directly from android SDK. You can get a
timezone from a city name, but not from lat/long values (see
http://developer.android.com/intl/fr/reference/java/util/TimeZone.html
setID() and getAvailableIDs() )
You can make a request to a webservice that will give you the
This is extremely complicated as you would need to store all the paths for
time zone borders, including the inclusions, double inclusions etc. Most
country borders are not straight so it would be a massive amount of data.
And then there is Indiana...
No, there's nothing in the SDK to do it, and yes, it's complicated - though
not insurmountable. Trust me, I
know: https://market.android.com/details?id=com.polyclock
Since Indiana' started using DST, it's really no harder than many other
states which split time zones. Arizona's the only really
3 matches
Mail list logo