| java.lang.Object org.joda.time.Chronology org.joda.time.chrono.BaseChronology org.joda.time.chrono.gj.TestGJChronology
All known Subclasses: org.joda.time.chrono.gj.TestJulianChronology, org.joda.time.chrono.gj.TestGregorianChronology,
TestGJChronology | abstract class TestGJChronology extends BaseChronology (Code) | | A reference Gregorian/Julian 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.
In theory, this class can be used to test any other Gregorian/Julian
chronology as long as almost all datetime fields are implemented differently
between the two. Fields that would most likely be implemented the same are
not supported by this class.
Unsupported features
- time zones
- time of day
- year of era
- year of century
- century of era
- era
author: Brian S O'Neill |
Constructor Summary | |
public | TestGJChronology(int epochYear, int epochMonth, int epochDay) |
Method Summary | |
static long | amod(long dividend, long divisor) | public DateTimeField | dayOfMonth() | public DateTimeField | dayOfWeek() | public DateTimeField | dayOfYear() | public DurationField | days() | static long | div(long dividend, long divisor) Divide with round-negative behavior. | long | firstWeekday(int weekday, int year, int monthOfYear, int dayOfMonth) | abstract long | fixedFromGJ(int year, int monthOfYear, int dayOfMonth) | abstract long | fixedFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek) | long | fixedFromMillis(long millis) | long | getDateOnlyMillis(long millis) | long | getTimeOnlyMillis(long millis) | public DateTimeZone | getZone() | abstract int[] | gjFromFixed(long date) | int[] | gjFromMillis(long millis) | abstract int | gjYearFromFixed(long date) | int | gjYearFromMillis(long millis) | abstract boolean | isLeapYear(int year) | abstract int[] | isoFromFixed(long date) | int[] | isoFromMillis(long millis) | long | lastWeekday(int weekday, int year, int monthOfYear, int dayOfMonth) | long | millisFromFixed(long fixed) | long | millisFromGJ(int year, int monthOfYear, int dayOfMonth) | long | millisFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek) | abstract long | millisPerMonth() | abstract long | millisPerYear() | static long | mod(long dividend, long divisor) Modulus with round-negative behavior, result is always positive. | public DateTimeField | monthOfYear() | public DurationField | months() | long | nthWeekday(int n, int weekday, int year, int monthOfYear, int dayOfMonth) | public DateTimeField | weekOfWeekyear() | long | weekdayAfter(long date, int weekday) | long | weekdayBefore(long date, int weekday) | long | weekdayNearest(long date, int weekday) | long | weekdayOnOrAfter(long date, int weekday) | long | weekdayOnOrBefore(long date, int weekday) Parameters: date - days from 0001-01-01 Parameters: weekday - 0=Sunday, 1=Monday, 2=Tuesday ... | public DurationField | weeks() | public DateTimeField | weekyear() | public DurationField | weekyears() | public Chronology | withUTC() | public Chronology | withZone(DateTimeZone zone) Unsupported. | public DateTimeField | year() | public DurationField | years() |
MILLIS_PER_DAY | final static long MILLIS_PER_DAY(Code) | | |
TestGJChronology | public TestGJChronology(int epochYear, int epochMonth, int epochDay)(Code) | | |
amod | static long amod(long dividend, long divisor)(Code) | | |
div | static long div(long dividend, long divisor)(Code) | | Divide with round-negative behavior.
Parameters: divisor - must be positive |
firstWeekday | long firstWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)(Code) | | |
fixedFromGJ | abstract long fixedFromGJ(int year, int monthOfYear, int dayOfMonth)(Code) | | days from 0001-01-01 |
fixedFromISO | abstract long fixedFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)(Code) | | |
fixedFromMillis | long fixedFromMillis(long millis)(Code) | | Parameters: millis - milliseconds from epoch days from 0001-01-01 |
getDateOnlyMillis | long getDateOnlyMillis(long millis)(Code) | | |
getTimeOnlyMillis | long getTimeOnlyMillis(long millis)(Code) | | |
gjFromFixed | abstract int[] gjFromFixed(long date)(Code) | | Parameters: date - days from 0001-01-01 gj year, monthOfYear, dayOfMonth |
gjFromMillis | int[] gjFromMillis(long millis)(Code) | | Parameters: millis - milliseconds from epoch gj year, monthOfYear, dayOfMonth |
gjYearFromFixed | abstract int gjYearFromFixed(long date)(Code) | | Parameters: date - days from 0001-01-01 gj year |
gjYearFromMillis | int gjYearFromMillis(long millis)(Code) | | Parameters: millis - milliseconds from epoch gj year |
isLeapYear | abstract boolean isLeapYear(int year)(Code) | | |
isoFromFixed | abstract int[] isoFromFixed(long date)(Code) | | Parameters: date - days from 0001-01-01 iso weekyear, weekOfWeekyear, dayOfWeek (1=Monday to 7) |
isoFromMillis | int[] isoFromMillis(long millis)(Code) | | Parameters: millis - milliseconds from epoch iso weekyear, weekOfWeekyear, dayOfWeek (1=Monday to 7) |
lastWeekday | long lastWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)(Code) | | |
millisFromFixed | long millisFromFixed(long fixed)(Code) | | Parameters: fixed - days from 0001-01-01 milliseconds from epoch |
millisFromGJ | long millisFromGJ(int year, int monthOfYear, int dayOfMonth)(Code) | | milliseconds from epoch |
millisFromISO | long millisFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)(Code) | | milliseconds from epoch |
millisPerMonth | abstract long millisPerMonth()(Code) | | |
millisPerYear | abstract long millisPerYear()(Code) | | |
mod | static long mod(long dividend, long divisor)(Code) | | Modulus with round-negative behavior, result is always positive.
Parameters: divisor - must be positive |
nthWeekday | long nthWeekday(int n, int weekday, int year, int monthOfYear, int dayOfMonth)(Code) | | |
weekdayAfter | long weekdayAfter(long date, int weekday)(Code) | | |
weekdayBefore | long weekdayBefore(long date, int weekday)(Code) | | |
weekdayNearest | long weekdayNearest(long date, int weekday)(Code) | | |
weekdayOnOrAfter | long weekdayOnOrAfter(long date, int weekday)(Code) | | |
weekdayOnOrBefore | long weekdayOnOrBefore(long date, int weekday)(Code) | | Parameters: date - days from 0001-01-01 Parameters: weekday - 0=Sunday, 1=Monday, 2=Tuesday ... 6=Saturday, 7=Sunday Parameters: date - days from 0001-01-01, on or before weekday |
Methods inherited from org.joda.time.chrono.BaseChronology | public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc) public long add(long instant, long duration, int scalar)(Code)(Java Doc) public DurationField centuries()(Code)(Java Doc) public DateTimeField centuryOfEra()(Code)(Java Doc) public DateTimeField clockhourOfDay()(Code)(Java Doc) public DateTimeField clockhourOfHalfday()(Code)(Java Doc) public DateTimeField dayOfMonth()(Code)(Java Doc) public DateTimeField dayOfWeek()(Code)(Java Doc) public DateTimeField dayOfYear()(Code)(Java Doc) public DurationField days()(Code)(Java Doc) public DateTimeField era()(Code)(Java Doc) public DurationField eras()(Code)(Java Doc) public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc) public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc) public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) abstract public DateTimeZone getZone()(Code)(Java Doc) public DateTimeField halfdayOfDay()(Code)(Java Doc) public DurationField halfdays()(Code)(Java Doc) public DateTimeField hourOfDay()(Code)(Java Doc) public DateTimeField hourOfHalfday()(Code)(Java Doc) public DurationField hours()(Code)(Java Doc) public DurationField millis()(Code)(Java Doc) public DateTimeField millisOfDay()(Code)(Java Doc) public DateTimeField millisOfSecond()(Code)(Java Doc) public DateTimeField minuteOfDay()(Code)(Java Doc) public DateTimeField minuteOfHour()(Code)(Java Doc) public DurationField minutes()(Code)(Java Doc) public DateTimeField monthOfYear()(Code)(Java Doc) public DurationField months()(Code)(Java Doc) public DateTimeField secondOfDay()(Code)(Java Doc) public DateTimeField secondOfMinute()(Code)(Java Doc) public DurationField seconds()(Code)(Java Doc) public long set(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc) public DateTimeField weekOfWeekyear()(Code)(Java Doc) public DurationField weeks()(Code)(Java Doc) public DateTimeField weekyear()(Code)(Java Doc) public DateTimeField weekyearOfCentury()(Code)(Java Doc) public DurationField weekyears()(Code)(Java Doc) abstract public Chronology withUTC()(Code)(Java Doc) abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc) public DateTimeField year()(Code)(Java Doc) public DateTimeField yearOfCentury()(Code)(Java Doc) public DateTimeField yearOfEra()(Code)(Java Doc) public DurationField years()(Code)(Java Doc)
|
Methods inherited from org.joda.time.Chronology | abstract public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc) abstract public long add(long instant, long duration, int scalar)(Code)(Java Doc) abstract public DurationField centuries()(Code)(Java Doc) abstract public DateTimeField centuryOfEra()(Code)(Java Doc) abstract public DateTimeField clockhourOfDay()(Code)(Java Doc) abstract public DateTimeField clockhourOfHalfday()(Code)(Java Doc) abstract public DateTimeField dayOfMonth()(Code)(Java Doc) abstract public DateTimeField dayOfWeek()(Code)(Java Doc) abstract public DateTimeField dayOfYear()(Code)(Java Doc) abstract public DurationField days()(Code)(Java Doc) abstract public DateTimeField era()(Code)(Java Doc) abstract public DurationField eras()(Code)(Java Doc) abstract public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc) abstract public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc) public static Chronology getBuddhist()(Code)(Java Doc) public static Chronology getBuddhist(DateTimeZone zone)(Code)(Java Doc) public static Chronology getBuddhistUTC()(Code)(Java Doc) public static Chronology getCoptic()(Code)(Java Doc) public static Chronology getCoptic(DateTimeZone zone)(Code)(Java Doc) public static Chronology getCopticUTC()(Code)(Java Doc) abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay)(Code)(Java Doc) abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc) abstract public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc) public static Chronology getGJ()(Code)(Java Doc) public static Chronology getGJ(DateTimeZone zone)(Code)(Java Doc) public static Chronology getGJUTC()(Code)(Java Doc) public static Chronology getGregorian()(Code)(Java Doc) public static Chronology getGregorian(DateTimeZone zone)(Code)(Java Doc) public static Chronology getGregorianUTC()(Code)(Java Doc) public static Chronology getISO()(Code)(Java Doc) public static Chronology getISO(DateTimeZone zone)(Code)(Java Doc) public static Chronology getISOUTC()(Code)(Java Doc) public static Chronology getJulian()(Code)(Java Doc) public static Chronology getJulian(DateTimeZone zone)(Code)(Java Doc) public static Chronology getJulianUTC()(Code)(Java Doc) abstract public DateTimeZone getZone()(Code)(Java Doc) abstract public DateTimeField halfdayOfDay()(Code)(Java Doc) abstract public DurationField halfdays()(Code)(Java Doc) abstract public DateTimeField hourOfDay()(Code)(Java Doc) abstract public DateTimeField hourOfHalfday()(Code)(Java Doc) abstract public DurationField hours()(Code)(Java Doc) abstract public DurationField millis()(Code)(Java Doc) abstract public DateTimeField millisOfDay()(Code)(Java Doc) abstract public DateTimeField millisOfSecond()(Code)(Java Doc) abstract public DateTimeField minuteOfDay()(Code)(Java Doc) abstract public DateTimeField minuteOfHour()(Code)(Java Doc) abstract public DurationField minutes()(Code)(Java Doc) abstract public DateTimeField monthOfYear()(Code)(Java Doc) abstract public DurationField months()(Code)(Java Doc) abstract public DateTimeField secondOfDay()(Code)(Java Doc) abstract public DateTimeField secondOfMinute()(Code)(Java Doc) abstract public DurationField seconds()(Code)(Java Doc) abstract public long set(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) abstract public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc) abstract public DateTimeField weekOfWeekyear()(Code)(Java Doc) abstract public DurationField weeks()(Code)(Java Doc) abstract public DateTimeField weekyear()(Code)(Java Doc) abstract public DateTimeField weekyearOfCentury()(Code)(Java Doc) abstract public DurationField weekyears()(Code)(Java Doc) abstract public Chronology withUTC()(Code)(Java Doc) abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc) abstract public DateTimeField year()(Code)(Java Doc) abstract public DateTimeField yearOfCentury()(Code)(Java Doc) abstract public DateTimeField yearOfEra()(Code)(Java Doc) abstract public DurationField years()(Code)(Java Doc)
|
|
|