Calendar.DST_OFFSET has the following syntax.
public static final int DST_OFFSET
In the following code shows how to use Calendar.DST_OFFSET field.
import java.util.Calendar; import java.util.GregorianCalendar; /*from w w w.j a va2s .c o m*/ public class Main { public static void main(String[] args) { Calendar cal = new GregorianCalendar(); System.out.println(cal.get(Calendar.DST_OFFSET)); } }
The code above generates the following result.