Android examples for java.util:Timezone
get Time Zone Hours Offset
//package com.java2s; import android.text.format.DateUtils; import java.util.TimeZone; public class Main { public static int getTimeZoneHoursOffset() { return TimeZone.getDefault().getRawOffset() / (int) DateUtils.HOUR_IN_MILLIS; }/*from w w w. j a v a 2 s . c o m*/ }