FileDocCategorySizeDatePackage
DatePrint1.javaAPI DocExample454Sat Nov 25 12:54:50 GMT 2000None

DatePrint1.java

import java.util.*;
/**
 * Show dates before 1970.
 * @author Ian F. Darwin, ian@darwinsys.com
 * @version $Id: DatePrint1.java,v 1.2 2000/11/25 17:54:50 ian Exp $
 */
public class DatePrint1 {
	public static void main(String[] argv) {
		//+
		Calendar c = new GregorianCalendar(1918, 10, 11);
		System.out.println(c.get(Calendar.DAY_OF_MONTH) + " " +
			c.get(Calendar.MONTH) + ", " +
			c.get(Calendar.YEAR) + " " +
			c.get(Calendar.ERA));
		//-
	}
}