Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
org.joda.time.base |
Implementation package providing abstract and base time classes.
|
org.joda.time.chrono |
Package containing the chronology classes which define the calendar systems.
|
org.joda.time.convert |
Implementation package providing conversion between date and time objects.
|
org.joda.time.field |
Implementation package providing abstract and standard field classes.
|
org.joda.time.format |
Provides printing and parsing support for instants and durations.
|
Modifier and Type | Method | Description |
---|---|---|
static Chronology |
Chronology.getBuddhist() |
Deprecated.
Use BuddhistChronology.getInstance()
|
static Chronology |
Chronology.getBuddhist(DateTimeZone zone) |
Deprecated.
Use BuddhistChronology.getInstance(zone)
|
static Chronology |
Chronology.getBuddhistUTC() |
Deprecated.
Use BuddhistChronology.getInstanceUTC()
|
protected Chronology |
DateMidnight.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
protected Chronology |
DateTime.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
static Chronology |
DateTimeUtils.getChronology(Chronology chrono) |
Gets the chronology handling null.
|
Chronology |
Instant.getChronology() |
Gets the chronology of the instant, which is ISO in the UTC zone.
|
Chronology |
LocalDate.getChronology() |
Gets the chronology of the date.
|
protected Chronology |
LocalDate.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
Chronology |
LocalDateTime.getChronology() |
Gets the chronology of the datetime.
|
protected Chronology |
LocalDateTime.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
Chronology |
LocalTime.getChronology() |
Gets the chronology of the time.
|
protected Chronology |
LocalTime.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
protected Chronology |
MutableDateTime.Property.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
Chronology |
Partial.getChronology() |
Gets the chronology of the partial which is never null.
|
Chronology |
ReadableInstant.getChronology() |
Gets the chronology of the instant.
|
Chronology |
ReadableInterval.getChronology() |
Gets the chronology of the interval, which is the chronology of the first datetime.
|
Chronology |
ReadablePartial.getChronology() |
Gets the chronology of the partial which is never null.
|
static Chronology |
Chronology.getCoptic() |
Deprecated.
Use CopticChronology.getInstance()
|
static Chronology |
Chronology.getCoptic(DateTimeZone zone) |
Deprecated.
Use CopticChronology.getInstance(zone)
|
static Chronology |
Chronology.getCopticUTC() |
Deprecated.
Use CopticChronology.getInstanceUTC()
|
static Chronology |
Chronology.getGJ() |
Deprecated.
Use GJChronology.getInstance()
|
static Chronology |
Chronology.getGJ(DateTimeZone zone) |
Deprecated.
Use GJChronology.getInstance(zone)
|
static Chronology |
Chronology.getGJUTC() |
Deprecated.
Use GJChronology.getInstanceUTC()
|
static Chronology |
Chronology.getGregorian() |
Deprecated.
Use GregorianChronology.getInstance()
|
static Chronology |
Chronology.getGregorian(DateTimeZone zone) |
Deprecated.
Use GregorianChronology.getInstance(zone)
|
static Chronology |
Chronology.getGregorianUTC() |
Deprecated.
Use GregorianChronology.getInstanceUTC()
|
static Chronology |
DateTimeUtils.getInstantChronology(ReadableInstant instant) |
Gets the chronology from the specified instant object handling null.
|
static Chronology |
DateTimeUtils.getIntervalChronology(ReadableInstant start,
ReadableInstant end) |
Gets the chronology from the specified instant based interval handling null.
|
static Chronology |
DateTimeUtils.getIntervalChronology(ReadableInterval interval) |
Gets the chronology from the specified interval object handling null.
|
static Chronology |
Chronology.getISO() |
Deprecated.
Use ISOChronology.getInstance()
|
static Chronology |
Chronology.getISO(DateTimeZone zone) |
Deprecated.
Use ISOChronology.getInstance(zone)
|
static Chronology |
Chronology.getISOUTC() |
Deprecated.
Use ISOChronology.getInstanceUTC()
|
static Chronology |
Chronology.getJulian() |
Deprecated.
Use JulianChronology.getInstance()
|
static Chronology |
Chronology.getJulian(DateTimeZone zone) |
Deprecated.
Use JulianChronology.getInstance(zone)
|
static Chronology |
Chronology.getJulianUTC() |
Deprecated.
Use JulianChronology.getInstanceUTC()
|
abstract Chronology |
Chronology.withUTC() |
Returns an instance of this Chronology that operates in the UTC time
zone.
|
abstract Chronology |
Chronology.withZone(DateTimeZone zone) |
Returns an instance of this Chronology that operates in any time zone.
|
Modifier and Type | Method | Description |
---|---|---|
void |
MutablePeriod.add(long duration,
Chronology chrono) |
Adds a millisecond duration to this one by dividing the duration into
fields and calling
MutablePeriod.add(ReadablePeriod) . |
protected long |
DateMidnight.checkInstant(long instant,
Chronology chronology) |
Rounds the specified instant to midnight.
|
static LocalTime |
LocalTime.fromMillisOfDay(long millisOfDay,
Chronology chrono) |
Constructs a LocalTime from the specified millis of day using the
specified chronology.
|
static TimeOfDay |
TimeOfDay.fromMillisOfDay(long millisOfDay,
Chronology chrono) |
Deprecated.
Constructs a TimeOfDay from the specified millis of day using the
specified chronology.
|
static Chronology |
DateTimeUtils.getChronology(Chronology chrono) |
Gets the chronology handling null.
|
abstract DateTimeField |
DateTimeFieldType.getField(Chronology chronology) |
Gets a suitable field for this type from the given Chronology.
|
abstract DurationField |
DurationFieldType.getField(Chronology chronology) |
Gets a suitable field for this type from the given Chronology.
|
protected DateTimeField |
LocalDate.getField(int index,
Chronology chrono) |
Gets the field for a specific index in the chronology specified.
|
protected DateTimeField |
LocalDateTime.getField(int index,
Chronology chrono) |
Gets the field for a specific index in the chronology specified.
|
protected DateTimeField |
LocalTime.getField(int index,
Chronology chrono) |
Gets the field for a specific index in the chronology specified.
|
protected DateTimeField |
Partial.getField(int index,
Chronology chrono) |
Gets the field for a specific index in the chronology specified.
|
protected DateTimeField |
TimeOfDay.getField(int index,
Chronology chrono) |
Deprecated.
Gets the field for a specific index in the chronology specified.
|
protected DateTimeField |
YearMonthDay.getField(int index,
Chronology chrono) |
Deprecated.
Gets the field for a specific index in the chronology specified.
|
boolean |
DateTimeFieldType.isSupported(Chronology chronology) |
Checks whether this field supported in the given Chronology.
|
boolean |
DurationFieldType.isSupported(Chronology chronology) |
Checks whether this field supported in the given Chronology.
|
void |
MutableDateTime.setChronology(Chronology chronology) |
Set the chronology of the datetime.
|
void |
MutableInterval.setChronology(Chronology chrono) |
Sets the chronology of this time interval.
|
void |
ReadWritableInstant.setChronology(Chronology chronology) |
Sets the chronology of the datetime, which has no effect if not applicable.
|
void |
ReadWritableInterval.setChronology(Chronology chrono) |
Sets the chronology of this time interval.
|
void |
MutablePeriod.setPeriod(long startInstant,
long endInstant,
Chronology chrono) |
Sets all the fields in one go from a millisecond interval.
|
void |
MutablePeriod.setPeriod(long duration,
Chronology chrono) |
Sets all the fields in one go from a millisecond duration.
|
void |
MutablePeriod.setPeriod(ReadableDuration duration,
Chronology chrono) |
Sets all the fields in one go from a duration dividing the
fields using the period type.
|
DateTime |
DateTime.toDateTime(Chronology chronology) |
Get this object as a DateTime, returning
this if possible. |
DateMidnight |
DateMidnight.withChronology(Chronology newChronology) |
Returns a copy of this date with a different chronology, potentially
changing the day in unexpected ways.
|
DateTime |
DateTime.withChronology(Chronology newChronology) |
Returns a copy of this datetime with a different chronology.
|
Interval |
Interval.withChronology(Chronology chronology) |
Creates a new interval with the same start and end, but a different chronology.
|
Partial |
Partial.withChronologyRetainFields(Chronology newChronology) |
Creates a new Partial instance with the specified chronology.
|
TimeOfDay |
TimeOfDay.withChronologyRetainFields(Chronology newChronology) |
Deprecated.
Returns a copy of this time with the specified chronology.
|
YearMonthDay |
YearMonthDay.withChronologyRetainFields(Chronology newChronology) |
Deprecated.
Returns a copy of this date with the specified chronology.
|
Constructor | Description |
---|---|
DateMidnight(int year,
int monthOfYear,
int dayOfMonth,
Chronology chronology) |
Constructs an instance from datetime field values
using the specified chronology.
|
DateMidnight(long instant,
Chronology chronology) |
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z
using the specified chronology.
|
DateMidnight(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
DateMidnight(Chronology chronology) |
Constructs an instance set to the current system millisecond time
using the specified chronology.
|
DateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Constructs an instance from datetime field values
using the specified chronology.
|
DateTime(long instant,
Chronology chronology) |
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z
using the specified chronology.
|
DateTime(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
DateTime(Chronology chronology) |
Constructs an instance set to the current system millisecond time
using the specified chronology.
|
Interval(long startInstant,
long endInstant,
Chronology chronology) |
Constructs an interval from a start and end instant with the
specified chronology.
|
Interval(java.lang.Object interval,
Chronology chronology) |
Constructs a time interval by converting or copying from another object,
overriding the chronology.
|
LocalDate(int year,
int monthOfYear,
int dayOfMonth,
Chronology chronology) |
Constructs an instance set to the specified date and time
using the specified chronology, whose zone is ignored.
|
LocalDate(long instant,
Chronology chronology) |
Constructs an instance set to the local time defined by the specified
instant evaluated using the specified chronology.
|
LocalDate(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
LocalDate(Chronology chronology) |
Constructs an instance set to the current local time evaluated using
specified chronology.
|
LocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Constructs an instance set to the specified date and time
using the specified chronology, whose zone is ignored.
|
LocalDateTime(long instant,
Chronology chronology) |
Constructs an instance set to the local time defined by the specified
instant evaluated using the specified chronology.
|
LocalDateTime(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
LocalDateTime(Chronology chronology) |
Constructs an instance set to the current local time evaluated using
specified chronology.
|
LocalTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Constructs an instance set to the specified time
using the specified chronology, whose zone is ignored.
|
LocalTime(long instant,
Chronology chronology) |
Constructs an instance set to the local time defined by the specified
instant evaluated using the specified chronology.
|
LocalTime(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
LocalTime(Chronology chronology) |
Constructs an instance set to the current local time evaluated using
specified chronology and zone.
|
MutableDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Constructs an instance from datetime field values
using the specified chronology.
|
MutableDateTime(long instant,
Chronology chronology) |
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z
using the specified chronology.
|
MutableDateTime(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
MutableDateTime(Chronology chronology) |
Constructs an instance set to the current system millisecond time
using the specified chronology.
|
MutableInterval(long startInstant,
long endInstant,
Chronology chronology) |
Constructs an interval from a start and end instant with a chronology.
|
MutableInterval(java.lang.Object interval,
Chronology chronology) |
Constructs a time interval by converting or copying from another object,
overriding the chronology.
|
MutablePeriod(long startInstant,
long endInstant,
Chronology chrono) |
Creates a period from the given interval endpoints using the standard
set of fields.
|
MutablePeriod(long startInstant,
long endInstant,
PeriodType type,
Chronology chrono) |
Creates a period from the given interval endpoints.
|
MutablePeriod(long duration,
Chronology chronology) |
Creates a period from the given millisecond duration using the standard
set of fields.
|
MutablePeriod(long duration,
PeriodType type,
Chronology chronology) |
Creates a period from the given millisecond duration.
|
MutablePeriod(java.lang.Object period,
Chronology chrono) |
Creates a period by converting or copying from another object.
|
MutablePeriod(java.lang.Object period,
PeriodType type,
Chronology chrono) |
Creates a period by converting or copying from another object.
|
Partial(Chronology chrono) |
Constructs a Partial with no fields or values, which can be considered
to represent any date.
|
Partial(DateTimeFieldType[] types,
int[] values,
Chronology chronology) |
Constructs a Partial with the specified fields and values.
|
Partial(DateTimeFieldType type,
int value,
Chronology chronology) |
Constructs a Partial with the specified field and value.
|
Period(long startInstant,
long endInstant,
Chronology chrono) |
Creates a period from the given interval endpoints using the standard
set of fields.
|
Period(long startInstant,
long endInstant,
PeriodType type,
Chronology chrono) |
Creates a period from the given interval endpoints.
|
Period(long duration,
Chronology chronology) |
Creates a period from the given millisecond duration using the standard
set of fields.
|
Period(long duration,
PeriodType type,
Chronology chronology) |
Creates a period from the given millisecond duration.
|
Period(java.lang.Object period,
Chronology chrono) |
Creates a period by converting or copying from another object.
|
Period(java.lang.Object period,
PeriodType type,
Chronology chrono) |
Creates a period by converting or copying from another object.
|
TimeOfDay(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Deprecated.
Constructs a TimeOfDay with specified time field values and chronology.
|
TimeOfDay(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
Chronology chronology) |
Deprecated.
Constructs a TimeOfDay with specified time field values and zero milliseconds.
|
TimeOfDay(int hourOfDay,
int minuteOfHour,
Chronology chronology) |
Deprecated.
Constructs a TimeOfDay with specified hour and minute and zero seconds and milliseconds.
|
TimeOfDay(long instant,
Chronology chronology) |
Deprecated.
Constructs a TimeOfDay extracting the partial fields from the specified
milliseconds using the chronology provided.
|
TimeOfDay(java.lang.Object instant,
Chronology chronology) |
Deprecated.
Constructs a TimeOfDay from an Object that represents a time, using the
specified chronology.
|
TimeOfDay(Chronology chronology) |
Deprecated.
Constructs a TimeOfDay with the current time, using the specified chronology
and zone to extract the fields.
|
YearMonthDay(int year,
int monthOfYear,
int dayOfMonth,
Chronology chronology) |
Deprecated.
Constructs a YearMonthDay with specified time field values.
|
YearMonthDay(long instant,
Chronology chronology) |
Deprecated.
Constructs a YearMonthDay extracting the partial fields from the specified
milliseconds using the chronology provided.
|
YearMonthDay(java.lang.Object instant,
Chronology chronology) |
Deprecated.
Constructs a YearMonthDay from an Object that represents a time, using the
specified chronology.
|
YearMonthDay(Chronology chronology) |
Deprecated.
Constructs a YearMonthDay with the current date, using the specified chronology
and zone to extract the fields.
|
Modifier and Type | Method | Description |
---|---|---|
protected Chronology |
BaseDateTime.checkChronology(Chronology chronology) |
Checks the specified chronology before storing it, potentially altering it.
|
Chronology |
BaseDateTime.getChronology() |
Gets the chronology of the datetime.
|
Chronology |
BaseInterval.getChronology() |
Gets the chronology of this interval.
|
Chronology |
BasePartial.getChronology() |
Gets the chronology of the partial which is never null.
|
Modifier and Type | Method | Description |
---|---|---|
protected Chronology |
BaseDateTime.checkChronology(Chronology chronology) |
Checks the specified chronology before storing it, potentially altering it.
|
protected long |
BaseDateTime.checkInstant(long instant,
Chronology chronology) |
Checks the specified instant before storing it, potentially altering it.
|
protected abstract DateTimeField |
AbstractPartial.getField(int index,
Chronology chrono) |
Gets the field for a specific index in the chronology specified.
|
protected void |
BaseDateTime.setChronology(Chronology chronology) |
Sets the chronology of the datetime.
|
protected void |
BaseInterval.setInterval(long startInstant,
long endInstant,
Chronology chrono) |
Sets this interval from two millisecond instants and a chronology.
|
DateTime |
AbstractInstant.toDateTime(Chronology chronology) |
Get this object as a DateTime using the given chronology and its zone.
|
MutableDateTime |
AbstractInstant.toMutableDateTime(Chronology chronology) |
Get this object as a MutableDateTime using the given chronology and its zone.
|
Period |
BaseDuration.toPeriod(Chronology chrono) |
Converts this duration to a Period instance using the standard period type
and the specified chronology.
|
Period |
BaseDuration.toPeriod(PeriodType type,
Chronology chrono) |
Converts this duration to a Period instance using the specified period type
and chronology.
|
Constructor | Description |
---|---|
BaseDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond,
Chronology chronology) |
Constructs an instance from datetime field values
using the specified chronology.
|
BaseDateTime(long instant,
Chronology chronology) |
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z
using the specified chronology.
|
BaseDateTime(java.lang.Object instant,
Chronology chronology) |
Constructs an instance from an Object that represents a datetime,
using the specified chronology.
|
BaseDateTime(Chronology chronology) |
Constructs an instance set to the current system millisecond time
using the specified chronology.
|
BaseInterval(long startInstant,
long endInstant,
Chronology chrono) |
Constructs an interval from a start and end instant.
|
BaseInterval(java.lang.Object interval,
Chronology chrono) |
Constructs a time interval converting or copying from another object
that describes an interval.
|
BasePartial(int[] values,
Chronology chronology) |
Constructs a partial with specified time field values and chronology.
|
BasePartial(long instant,
Chronology chronology) |
Constructs a partial extracting the partial fields from the specified
milliseconds using the chronology provided.
|
BasePartial(java.lang.Object instant,
Chronology chronology) |
Constructs a partial from an Object that represents a time, using the
specified chronology.
|
BasePartial(java.lang.Object instant,
Chronology chronology,
DateTimeFormatter parser) |
Constructs a partial from an Object that represents a time, using the
specified chronology.
|
BasePartial(BasePartial base,
Chronology chrono) |
Private constructor to be used by subclasses only which performs no validation.
|
BasePartial(Chronology chronology) |
Constructs a partial with the current time, using the specified chronology
and zone to extract the fields.
|
BasePeriod(long startInstant,
long endInstant,
PeriodType type,
Chronology chrono) |
Creates a period from the given interval endpoints.
|
BasePeriod(long duration,
PeriodType type,
Chronology chrono) |
Creates a period from the given millisecond duration, which is only really
suitable for durations less than one day.
|
BasePeriod(java.lang.Object period,
PeriodType type,
Chronology chrono) |
Creates a new period based on another using the
ConverterManager . |
Modifier and Type | Class | Description |
---|---|---|
class |
AssembledChronology |
Abstract Chronology that enables chronologies to be assembled from
a container of fields.
|
class |
BaseChronology |
BaseChronology provides a skeleton implementation for chronology
classes.
|
class |
BuddhistChronology |
A chronology that matches the BuddhistCalendar class supplied by Sun.
|
class |
CopticChronology |
Implements the Coptic calendar system, which defines every fourth year as
leap, much like the Julian calendar.
|
class |
EthiopicChronology |
Implements the Ethiopic calendar system, which defines every fourth year as
leap, much like the Julian calendar.
|
class |
GJChronology |
Implements the Gregorian/Julian calendar system which is the calendar system
used in most of the world.
|
class |
GregorianChronology |
Implements a pure proleptic Gregorian calendar system, which defines every
fourth year as leap, unless the year is divisible by 100 and not by 400.
|
class |
IslamicChronology |
Implements the Islamic, or Hijri, calendar system using arithmetic rules.
|
class |
ISOChronology |
Implements a chronology that follows the rules of the ISO8601 standard,
which is compatible with Gregorian for all modern dates.
|
class |
JulianChronology |
Implements a pure proleptic Julian calendar system, which defines every
fourth year as leap.
|
class |
LenientChronology |
Wraps another Chronology, ensuring all the fields are lenient.
|
class |
LimitChronology |
Wraps another Chronology to impose limits on the range of instants that
the fields within a Chronology may support.
|
class |
StrictChronology |
Wraps another Chronology, ensuring all the fields are strict.
|
class |
ZonedChronology |
Wraps another Chronology to add support for time zones.
|
Modifier and Type | Method | Description |
---|---|---|
protected Chronology |
AssembledChronology.getBase() |
Returns the same base chronology as passed into the constructor.
|
abstract Chronology |
BaseChronology.withUTC() |
Returns an instance of this Chronology that operates in the UTC time
zone.
|
Chronology |
BuddhistChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
CopticChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
EthiopicChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
GJChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
GregorianChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
IslamicChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
ISOChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
JulianChronology.withUTC() |
Gets the Chronology in the UTC time zone.
|
Chronology |
LenientChronology.withUTC() |
|
Chronology |
LimitChronology.withUTC() |
If this LimitChronology is already UTC, then this is
returned.
|
Chronology |
StrictChronology.withUTC() |
|
Chronology |
ZonedChronology.withUTC() |
|
abstract Chronology |
BaseChronology.withZone(DateTimeZone zone) |
Returns an instance of this Chronology that operates in any time zone.
|
Chronology |
BuddhistChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
CopticChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
EthiopicChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
GJChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
GregorianChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
IslamicChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
ISOChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
JulianChronology.withZone(DateTimeZone zone) |
Gets the Chronology in a specific time zone.
|
Chronology |
LenientChronology.withZone(DateTimeZone zone) |
|
Chronology |
LimitChronology.withZone(DateTimeZone zone) |
If this LimitChronology has the same time zone as the one given, then
this is returned.
|
Chronology |
StrictChronology.withZone(DateTimeZone zone) |
|
Chronology |
ZonedChronology.withZone(DateTimeZone zone) |
Modifier and Type | Method | Description |
---|---|---|
void |
AssembledChronology.Fields.copyFieldsFrom(Chronology chrono) |
Copy the supported fields from a chronology into this container.
|
static LenientChronology |
LenientChronology.getInstance(Chronology base) |
Create a LenientChronology for any chronology.
|
static LimitChronology |
LimitChronology.getInstance(Chronology base,
ReadableDateTime lowerLimit,
ReadableDateTime upperLimit) |
Wraps another chronology, with datetime limits.
|
static StrictChronology |
StrictChronology.getInstance(Chronology base) |
Create a StrictChronology for any chronology.
|
static ZonedChronology |
ZonedChronology.getInstance(Chronology base,
DateTimeZone zone) |
Create a ZonedChronology for any chronology, overriding any time zone it
may already have.
|
Constructor | Description |
---|---|
AssembledChronology(Chronology base,
java.lang.Object param) |
Constructor calls the assemble method, enabling subclasses to define its
supported fields.
|
Modifier and Type | Method | Description |
---|---|---|
Chronology |
AbstractConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this convertor's type
where the chronology is specified.
|
Chronology |
AbstractConverter.getChronology(java.lang.Object object,
DateTimeZone zone) |
Extracts the chronology from an object of this convertor's type
where the time zone is specified.
|
Chronology |
InstantConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this converter's type
where the chronology may be specified.
|
Chronology |
InstantConverter.getChronology(java.lang.Object object,
DateTimeZone zone) |
Extracts the chronology from an object of this converter's type
where the time zone is specified.
|
Chronology |
PartialConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this converter's type
where the chronology is specified.
|
Chronology |
PartialConverter.getChronology(java.lang.Object object,
DateTimeZone zone) |
Extracts the chronology from an object of this converter's type
where the time zone is specified.
|
Modifier and Type | Method | Description |
---|---|---|
Chronology |
AbstractConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this convertor's type
where the chronology is specified.
|
Chronology |
InstantConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this converter's type
where the chronology may be specified.
|
Chronology |
PartialConverter.getChronology(java.lang.Object object,
Chronology chrono) |
Extracts the chronology from an object of this converter's type
where the chronology is specified.
|
long |
AbstractConverter.getInstantMillis(java.lang.Object object,
Chronology chrono) |
Extracts the millis from an object of this convertor's type.
|
long |
InstantConverter.getInstantMillis(java.lang.Object object,
Chronology chrono) |
Extracts the millis from an object of this converter's type.
|
int[] |
AbstractConverter.getPartialValues(ReadablePartial fieldSource,
java.lang.Object object,
Chronology chrono) |
Extracts the values of the partial from an object of this converter's type.
|
int[] |
AbstractConverter.getPartialValues(ReadablePartial fieldSource,
java.lang.Object object,
Chronology chrono,
DateTimeFormatter parser) |
Extracts the values of the partial from an object of this converter's type.
|
int[] |
PartialConverter.getPartialValues(ReadablePartial fieldSource,
java.lang.Object object,
Chronology chrono) |
Extracts the values of the partial from an object of this converter's type.
|
int[] |
PartialConverter.getPartialValues(ReadablePartial fieldSource,
java.lang.Object object,
Chronology chrono,
DateTimeFormatter parser) |
Extracts the values of the partial from an object of this converter's type.
|
boolean |
AbstractConverter.isReadableInterval(java.lang.Object object,
Chronology chrono) |
Checks if the input is a ReadableInterval.
|
boolean |
IntervalConverter.isReadableInterval(java.lang.Object object,
Chronology chrono) |
Checks if the input is a ReadableInterval.
|
void |
IntervalConverter.setInto(ReadWritableInterval writableInterval,
java.lang.Object object,
Chronology chrono) |
Extracts interval endpoint values from an object of this converter's
type, and sets them into the given ReadWritableInterval.
|
void |
PeriodConverter.setInto(ReadWritablePeriod period,
java.lang.Object object,
Chronology chrono) |
Extracts duration values from an object of this converter's type, and
sets them into the given ReadWritableDuration.
|
Modifier and Type | Method | Description |
---|---|---|
protected Chronology |
AbstractReadableInstantFieldProperty.getChronology() |
Gets the chronology of the datetime that this property is linked to.
|
Modifier and Type | Method | Description |
---|---|---|
static DateTimeField |
LenientDateTimeField.getInstance(DateTimeField field,
Chronology base) |
Returns a lenient version of the given field.
|
Constructor | Description |
---|---|
LenientDateTimeField(DateTimeField field,
Chronology base) |
|
SkipDateTimeField(Chronology chronology,
DateTimeField field) |
Constructor that skips zero.
|
SkipDateTimeField(Chronology chronology,
DateTimeField field,
int skip) |
Constructor.
|
SkipUndoDateTimeField(Chronology chronology,
DateTimeField field) |
Constructor that reinserts zero.
|
SkipUndoDateTimeField(Chronology chronology,
DateTimeField field,
int skip) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Chronology |
DateTimeFormatter.getChronolgy() |
Gets the chronology to use as an override.
|
Chronology |
DateTimeParserBucket.getChronology() |
Gets the chronology of the bucket, which will be a local (UTC) chronology.
|
Modifier and Type | Method | Description |
---|---|---|
void |
DateTimePrinter.printTo(java.io.Writer out,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale) |
Prints an instant from milliseconds since 1970-01-01T00:00:00Z,
using the given Chronology.
|
void |
DateTimePrinter.printTo(java.lang.StringBuffer buf,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale) |
Prints an instant from milliseconds since 1970-01-01T00:00:00Z,
using the given Chronology.
|
DateTimeFormatter |
DateTimeFormatter.withChronology(Chronology chrono) |
Returns a new formatter that will use the specified chronology in
preference to that of the printed object, or ISO on a parse.
|
Constructor | Description |
---|---|
DateTimeParserBucket(long instantLocal,
Chronology chrono,
java.util.Locale locale) |
Constucts a bucket.
|
DateTimeParserBucket(long instantLocal,
Chronology chrono,
java.util.Locale locale,
java.lang.Integer pivotYear) |
Constucts a bucket, with the option of specifying the pivot year for
two-digit year parsing.
|
Copyright (c) 2001-2006 - Joda.org