org.jscience.history.calendars
Class GregorianCalendar

java.lang.Object
  extended by org.jscience.history.calendars.AlternateCalendar
      extended by org.jscience.history.calendars.SevenDaysWeek
          extended by org.jscience.history.calendars.MonthDayYear
              extended by org.jscience.history.calendars.GregorianCalendar
Direct Known Subclasses:
ISOCalendar, JulianCalendar

public class GregorianCalendar
extends MonthDayYear

DOCUMENT ME!


Field Summary
protected static long EPOCH
          DOCUMENT ME!
protected static java.lang.String[] MONTHS
          DOCUMENT ME!
 
Fields inherited from class org.jscience.history.calendars.MonthDayYear
day, month, year
 
Fields inherited from class org.jscience.history.calendars.SevenDaysWeek
DAYNAMES, FRIDAY, MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY
 
Fields inherited from class org.jscience.history.calendars.AlternateCalendar
JD_EPOCH, rd, unicode
 
Constructor Summary
GregorianCalendar()
          Creates a new GregorianCalendar object.
GregorianCalendar(AlternateCalendar altcalendar)
          Creates a new GregorianCalendar object.
GregorianCalendar(int i, int j, int k)
          Creates a new GregorianCalendar object.
GregorianCalendar(long l)
          Creates a new GregorianCalendar object.
 
Method Summary
 int dayNumber()
          DOCUMENT ME!
 int daysLeft()
          DOCUMENT ME!
 java.util.Enumeration getMonths()
          DOCUMENT ME!
protected  java.lang.String getSuffix()
          DOCUMENT ME!
static boolean isLeapYear(int i)
          DOCUMENT ME!
static void main(java.lang.String[] args)
          DOCUMENT ME!
protected  java.lang.String monthName()
          DOCUMENT ME!
protected  void recomputeFromRD()
          DOCUMENT ME!
protected  void recomputeRD()
          DOCUMENT ME!
 void set(long l)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.history.calendars.MonthDayYear
getDay, getMonth, getYear, set, toString
 
Methods inherited from class org.jscience.history.calendars.SevenDaysWeek
kDayAfter, kDayBefore, kDayNearest, kDayOnOrAfter, kDayOnOrBefore, nthKDay, weekDay
 
Methods inherited from class org.jscience.history.calendars.AlternateCalendar
add, after, amod, before, difference, difference, fldiv, fromJD, mod, mod, subtract, toJD, toJD, toRD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MONTHS

protected static final java.lang.String[] MONTHS
DOCUMENT ME!


EPOCH

protected static long EPOCH
DOCUMENT ME!

Constructor Detail

GregorianCalendar

public GregorianCalendar(long l)
Creates a new GregorianCalendar object.

Parameters:
l - DOCUMENT ME!

GregorianCalendar

public GregorianCalendar(int i,
                         int j,
                         int k)
Creates a new GregorianCalendar object.

Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
k - DOCUMENT ME!

GregorianCalendar

public GregorianCalendar()
Creates a new GregorianCalendar object.


GregorianCalendar

public GregorianCalendar(AlternateCalendar altcalendar)
Creates a new GregorianCalendar object.

Parameters:
altcalendar - DOCUMENT ME!
Method Detail

isLeapYear

public static boolean isLeapYear(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

recomputeRD

protected void recomputeRD()
DOCUMENT ME!

Specified by:
recomputeRD in class AlternateCalendar

set

public void set(long l)
DOCUMENT ME!

Specified by:
set in class AlternateCalendar
Parameters:
l - DOCUMENT ME!

recomputeFromRD

protected void recomputeFromRD()
DOCUMENT ME!

Specified by:
recomputeFromRD in class AlternateCalendar

dayNumber

public int dayNumber()
DOCUMENT ME!

Returns:
DOCUMENT ME!

daysLeft

public int daysLeft()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSuffix

protected java.lang.String getSuffix()
DOCUMENT ME!

Specified by:
getSuffix in class MonthDayYear
Returns:
DOCUMENT ME!

monthName

protected java.lang.String monthName()
DOCUMENT ME!

Specified by:
monthName in class MonthDayYear
Returns:
DOCUMENT ME!

getMonths

public java.util.Enumeration getMonths()
DOCUMENT ME!

Specified by:
getMonths in class MonthDayYear
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!