[android-developers] Re: Getting current time OR GMT offset for any location.

2011-04-20 Thread Fougère
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

[android-developers] Re: Getting current time OR GMT offset for any location.

2011-04-16 Thread lbendlin
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...

[android-developers] Re: Getting current time OR GMT offset for any location.

2011-04-16 Thread String
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