Example usage for java.util GregorianCalendar getGregorianChange

List of usage examples for java.util GregorianCalendar getGregorianChange

Introduction

In this page you can find the example usage for java.util GregorianCalendar getGregorianChange.

Prototype

public final Date getGregorianChange() 

Source Link

Document

Gets the Gregorian Calendar change date.

Usage

From source file:Main.java

public static void main(String[] args) {

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

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

}

From source file:Main.java

public static void main(String[] args) {

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

    // set gregorian change at another date
    cal.setGregorianChange(new Date());
    System.out.println("Gregorian Change Date" + cal.getGregorianChange());

}