public final class

TestJulianChronology

extends BaseChronology
java.lang.Object
   ↳ org.joda.time.Chronology
     ↳ org.joda.time.chrono.BaseChronology
       ↳ org.joda.time.chrono.gj.TestJulianChronology

Class Overview

A reference 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.

Summary

Public Constructors
TestJulianChronology()
Constructs with an epoch of 1969-12-19.
TestJulianChronology(int epochYear, int epochMonth, int epochDay)
Public Methods
DateTimeField dayOfMonth()
Get the day of month field for this chronology.
DateTimeField dayOfWeek()
Get the day of week field for this chronology.
DateTimeField dayOfYear()
Get the day of year field for this chronology.
DurationField days()
Get the days duration field for this chronology.
DateTimeZone getZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified.
DateTimeField monthOfYear()
Get the month of year field for this chronology.
DurationField months()
Get the months duration field for this chronology.
String toString()
Gets a debugging toString.
DateTimeField weekOfWeekyear()
Get the week of a week based year field for this chronology.
DurationField weeks()
Get the weeks duration field for this chronology.
DateTimeField weekyear()
Get the year of a week based year field for this chronology.
DurationField weekyears()
Get the weekyears duration field for this chronology.
Chronology withUTC()
Returns an instance of this Chronology that operates in the UTC time zone.
Chronology withZone(DateTimeZone zone)
Unsupported.
DateTimeField year()
Get the year field for this chronology.
DurationField years()
Get the years duration field for this chronology.
[Expand]
Inherited Methods
From class org.joda.time.chrono.BaseChronology
From class org.joda.time.Chronology
From class java.lang.Object

Public Constructors

public TestJulianChronology ()

Constructs with an epoch of 1969-12-19.

public TestJulianChronology (int epochYear, int epochMonth, int epochDay)

Public Methods

public DateTimeField dayOfMonth ()

Get the day of month field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DateTimeField dayOfWeek ()

Get the day of week field for this chronology.

DayOfWeek values are defined in DateTimeConstants. They use the ISO definitions, where 1 is Monday and 7 is Sunday.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DateTimeField dayOfYear ()

Get the day of year field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DurationField days ()

Get the days duration field for this chronology.

Returns
  • DurationField or UnsupportedDurationField if unsupported

public DateTimeZone getZone ()

Returns the DateTimeZone that this Chronology operates in, or null if unspecified.

Returns
  • DateTimeZone null if unspecified

public DateTimeField monthOfYear ()

Get the month of year field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DurationField months ()

Get the months duration field for this chronology.

Returns
  • DurationField or UnsupportedDurationField if unsupported

public String toString ()

Gets a debugging toString.

Returns
  • a debugging string

public DateTimeField weekOfWeekyear ()

Get the week of a week based year field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DurationField weeks ()

Get the weeks duration field for this chronology.

Returns
  • DurationField or UnsupportedDurationField if unsupported

public DateTimeField weekyear ()

Get the year of a week based year field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DurationField weekyears ()

Get the weekyears duration field for this chronology.

Returns
  • DurationField or UnsupportedDurationField if unsupported

public Chronology withUTC ()

Returns an instance of this Chronology that operates in the UTC time zone. Chronologies that do not operate in a time zone or are already UTC must return themself.

Returns
  • a version of this chronology that ignores time zones

public Chronology withZone (DateTimeZone zone)

Unsupported.

Parameters
zone to use, or default if null
Returns
  • a version of this chronology with a specific time zone

public DateTimeField year ()

Get the year field for this chronology.

Returns
  • DateTimeField or UnsupportedDateTimeField if unsupported

public DurationField years ()

Get the years duration field for this chronology.

Returns
  • DurationField or UnsupportedDurationField if unsupported