Java Date Time - Java GregorianCalendar .getGregorianChange ()








Syntax

GregorianCalendar.getGregorianChange() has the following syntax.

public final Date getGregorianChange()

Example

In the following code shows how to use GregorianCalendar.getGregorianChange() method.

//from   ww  w . j  av  a 2 s . c  o  m

import java.util.*;

public class Main {

   public static void main(String[] args) {


      GregorianCalendar cal =
              (GregorianCalendar) GregorianCalendar.getInstance();

      // get Gregorian change and print it
      System.out.println("Date change:" + cal.getGregorianChange());

   }
}

The code above generates the following result.