Java tutorial
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()); } }