List of usage examples for java.util SimpleTimeZone getOffset
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
From source file:Main.java
public static void main(String args[]) { SimpleTimeZone stobj = new SimpleTimeZone(720, "US"); // get offset int offset = stobj.getOffset(GregorianCalendar.AD, 2000, 10, 2, 4, 5000); // check offset value System.out.println("Offset is : " + offset); }