FileDocCategorySizeDatePackage
DatePrint2.javaAPI DocExample780Sun Feb 08 21:33:46 GMT 2004None

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, http://www.darwinsys.com/
version
$Id: DatePrint2.java,v 1.4 2004/02/09 03:33:46 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)]);
	//-