DatePrint2public class DatePrint2 extends Object Show dates before 1970, in JDK1.0/1.1 when Date was broken
DO NOT USE ANYMORE -- use DateFormat instead!!. |
Fields Summary |
---|
static String[] | months | static String[] | eras |
Methods Summary |
---|
public static void | main(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)]);
//-
|
|