List of usage examples for android.util TimeUtils getTimeZone
public static java.util.TimeZone getTimeZone(int offset, boolean dst, long when, String country)
From source file:Main.java
private static TimeZone guessTimeZone(Calendar c, String country) { return TimeUtils.getTimeZone(c.get(Calendar.ZONE_OFFSET) + c.get(Calendar.DST_OFFSET), c.get(Calendar.DST_OFFSET) != 0, c.getTimeInMillis(), country); }