-1

I got this list of time zone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Is there any way I can get the TZ value of this list on Android device? I am not really sure what it is called in Android.

Or if anyone can point me to the right direction please? I am quite confused atm.

Cheers,

Long Dao
  • 1,341
  • 4
  • 15
  • 33

1 Answers1

2

Android Developer reference: https://developer.android.com/reference/java/util/TimeZone.html

If you want to get TimeZone-TZ, use TimeZone.getID().

TimeZone timeZone = TimeZone.getDefault();
String name = timeZone.getID();  // "Asia/Seoul"
daehan park
  • 118
  • 1
  • 7