FileDocCategorySizeDatePackage
DatePrint2.javaAPI DocExample772Sat Nov 25 12:54:50 GMT 2000None

DatePrint2

public class DatePrint2 extends Object
Show dates before 1970, in JDK1.0/1.1 when Date was broken DO NOT USE ANYMORE -- use DateFormat instead!!.
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: DatePrint2.java,v 1.3 2000/11/25 17:54:50 ian Exp $

Fields Summary
static String[]
months
static String[]
eras
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

	     
		Calendar c = new GregorianCalendar(1918, 10, 11);
		System.out.println(
			months[c.get(Calendar.MONTH)] + " " +
			c.get(Calendar.DAY_OF_MONTH) + ", " +
			c.get(Calendar.YEAR) + " " +
			eras[c.get(Calendar.ERA)]);
	//-