org.joda.time.chrono.gj
Class TestGregorianChronology

java.lang.Object
  extended by org.joda.time.Chronology
      extended by org.joda.time.chrono.BaseChronology
          extended by org.joda.time.chrono.gj.TestGregorianChronology
All Implemented Interfaces:
Serializable

public final class TestGregorianChronology
extends BaseChronology

A reference Gregorian chronology implementation, intended for testing purposes only. Correctness is favored over performance. The key functions for date calculations are based on ones provided in "Calendrical Calculations", ISBN 0-521-77752-6.

Author:
Brian S O'Neill
See Also:
Serialized Form

Constructor Summary
TestGregorianChronology()
          Constructs with an epoch of 1970-01-01.
TestGregorianChronology(int epochYear, int epochMonth, int epochDay)
           
 
Method Summary
 DateTimeField dayOfMonth()
           
 DateTimeField dayOfWeek()
           
 DateTimeField dayOfYear()
           
 DurationField days()
           
 DateTimeZone getZone()
           
 DateTimeField monthOfYear()
           
 DurationField months()
           
 String toString()
           
 DateTimeField weekOfWeekyear()
           
 DurationField weeks()
           
 DateTimeField weekyear()
           
 DurationField weekyears()
           
 Chronology withUTC()
           
 Chronology withZone(DateTimeZone zone)
          Unsupported.
 DateTimeField year()
           
 DurationField years()
           
 
Methods inherited from class org.joda.time.chrono.BaseChronology
add, add, centuries, centuryOfEra, clockhourOfDay, clockhourOfHalfday, era, eras, get, get, get, getDateTimeMillis, getDateTimeMillis, getDateTimeMillis, halfdayOfDay, halfdays, hourOfDay, hourOfHalfday, hours, millis, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, minutes, secondOfDay, secondOfMinute, seconds, set, validate, weekyearOfCentury, yearOfCentury, yearOfEra
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestGregorianChronology

public TestGregorianChronology()
Constructs with an epoch of 1970-01-01.


TestGregorianChronology

public TestGregorianChronology(int epochYear,
                               int epochMonth,
                               int epochDay)
Method Detail

toString

public String toString()
Specified by:
toString in class BaseChronology

getZone

public DateTimeZone getZone()
Specified by:
getZone in class BaseChronology

withUTC

public Chronology withUTC()
Specified by:
withUTC in class BaseChronology

withZone

public Chronology withZone(DateTimeZone zone)
Unsupported.

Specified by:
withZone in class BaseChronology

days

public DurationField days()
Overrides:
days in class BaseChronology

dayOfWeek

public DateTimeField dayOfWeek()
Overrides:
dayOfWeek in class BaseChronology

dayOfMonth

public DateTimeField dayOfMonth()
Overrides:
dayOfMonth in class BaseChronology

dayOfYear

public DateTimeField dayOfYear()
Overrides:
dayOfYear in class BaseChronology

weeks

public DurationField weeks()
Overrides:
weeks in class BaseChronology

weekOfWeekyear

public DateTimeField weekOfWeekyear()
Overrides:
weekOfWeekyear in class BaseChronology

weekyears

public DurationField weekyears()
Overrides:
weekyears in class BaseChronology

weekyear

public DateTimeField weekyear()
Overrides:
weekyear in class BaseChronology

months

public DurationField months()
Overrides:
months in class BaseChronology

monthOfYear

public DateTimeField monthOfYear()
Overrides:
monthOfYear in class BaseChronology

years

public DurationField years()
Overrides:
years in class BaseChronology

year

public DateTimeField year()
Overrides:
year in class BaseChronology


Copyright © 2002-2013 Joda.org. All Rights Reserved.