Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
javax.time.i18n |
Provides classes representing dates and times in alternate calendar systems.
|
Modifier and Type | Method and Description |
---|---|
PeriodUnit |
PeriodUnit.getBaseUnit()
Gets the base unit of this unit.
|
PeriodUnit |
CalendricalRule.getPeriodRange()
Gets the range that the rule is bound by.
|
PeriodUnit |
CalendricalRule.getPeriodUnit()
Gets the unit that the rule is measured in.
|
PeriodUnit |
PeriodField.getUnit()
Gets the unit of this period.
|
static PeriodUnit |
ISOChronology.period12Hours()
Gets the period unit for twelve hours, as used by AM/PM.
|
static PeriodUnit |
ISOChronology.period24Hours()
Gets the period unit for twenty-four hours, that is often treated as a day.
|
static PeriodUnit |
ISOChronology.periodCenturies()
Gets the period unit for centuries of 100 years.
|
static PeriodUnit |
ISOChronology.periodDays()
Gets the period unit for days.
|
static PeriodUnit |
ISOChronology.periodDecades()
Gets the period unit for decades of 10 years.
|
static PeriodUnit |
ISOChronology.periodEras()
Gets the period unit for eras.
|
static PeriodUnit |
ISOChronology.periodHours()
Gets the period unit for hours of 60 minutes.
|
static PeriodUnit |
ISOChronology.periodMicros()
Gets the period unit for microseconds.
|
static PeriodUnit |
ISOChronology.periodMillennia()
Gets the period unit for millennia of 1000 years.
|
static PeriodUnit |
ISOChronology.periodMillis()
Gets the period unit for milliseconds.
|
static PeriodUnit |
ISOChronology.periodMinutes()
Gets the period unit for minutes of 60 seconds.
|
static PeriodUnit |
ISOChronology.periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
ISOChronology.periodNanos()
Gets the period unit for nanoseconds.
|
static PeriodUnit |
ISOChronology.periodQuarters()
Gets the period unit for quarters of 3 months.
|
static PeriodUnit |
ISOChronology.periodSeconds()
Gets the period unit for seconds.
|
static PeriodUnit |
ISOChronology.periodWeekBasedYears()
Gets the period unit for week-based-years.
|
static PeriodUnit |
ISOChronology.periodWeeks()
Gets the period unit for weeks of 7 days.
|
static PeriodUnit |
ISOChronology.periodYears()
Gets the period unit for years of 12 months.
|
Modifier and Type | Method and Description |
---|---|
SortedMap<PeriodUnit,PeriodField> |
PeriodFields.toMap()
Returns a
Map equivalent to this period. |
Modifier and Type | Method and Description |
---|---|
int |
PeriodUnit.compareTo(PeriodUnit other)
Compares this unit to another.
|
boolean |
PeriodFields.contains(PeriodUnit unit)
Checks whether this period contains an amount for the unit.
|
PeriodField |
PeriodFields.get(PeriodUnit unit)
Gets the period for the specified unit.
|
long |
PeriodFields.getAmount(PeriodUnit unit)
Gets the amount of this period for the specified unit.
|
int |
PeriodFields.getAmountInt(PeriodUnit unit)
Gets the amount of this period for the specified unit converted
to an
int . |
PeriodField |
PeriodUnit.getEquivalentPeriod(PeriodUnit requiredUnit)
Gets the period in the specified unit that is equivalent to this unit.
|
boolean |
PeriodUnit.isConvertibleTo(PeriodUnit unit)
Checks whether this unit can be converted to the specified unit.
|
PeriodFields |
PeriodFields.minus(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified period subtracted.
|
PeriodFields |
PeriodFields.normalizedTo(PeriodUnit... units)
Returns a copy of this period with the amounts normalized to the specified units.
|
static Period |
Period.of(int amount,
PeriodUnit unit)
Obtains a
Period from an amount and unit. |
static PeriodField |
PeriodField.of(long amount,
PeriodUnit unit)
Obtains a
PeriodField from an amount and unit. |
static PeriodFields |
PeriodFields.of(long amount,
PeriodUnit unit)
Obtains a
PeriodFields from an amount and unit. |
PeriodFields |
PeriodFields.plus(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified period added.
|
PeriodFields |
PeriodFields.retain(PeriodUnit... units)
Returns a copy of this period with the specified units retained.
|
PeriodFields |
PeriodFields.retainConvertible(PeriodUnit... units)
Returns a copy of this period with only those units that can be converted to
the specified units.
|
PeriodField |
PeriodField.toEquivalent(PeriodUnit... requiredUnits)
Converts this period to an equivalent in one of the units specified.
|
PeriodFields |
PeriodFields.toEquivalent(PeriodUnit... units)
Converts this period to one containing only the units specified.
|
PeriodField |
PeriodField.toEquivalent(PeriodUnit requiredUnit)
Converts this period to an equivalent in the specified unit.
|
PeriodField |
PeriodFields.toTotal(PeriodUnit unit)
Totals this period in terms of a single unit.
|
PeriodFields |
PeriodFields.with(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified amount for the unit.
|
PeriodFields |
PeriodFields.without(PeriodUnit unit)
Returns a copy of this period with the specified unit removed.
|
PeriodField |
PeriodField.withUnit(PeriodUnit unit)
Returns a copy of this period with a different unit.
|
Constructor and Description |
---|
CalendricalRule(Class<T> reifiedClass,
Chronology chronology,
String name,
PeriodUnit periodUnit,
PeriodUnit periodRange)
Constructor used to create a rule.
|
DateTimeFieldRule(Class<T> reifiedClass,
Chronology chronology,
String name,
PeriodUnit periodUnit,
PeriodUnit periodRange,
int minimumValue,
int maximumValue)
Constructor.
|
DateTimeFieldRule(Class<T> reifiedClass,
Chronology chronology,
String name,
PeriodUnit periodUnit,
PeriodUnit periodRange,
int minimumValue,
int maximumValue,
boolean hasText)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static PeriodUnit |
JulianChronology.periodDays()
Gets the period unit for days.
|
static PeriodUnit |
CopticChronology.periodDays()
Gets the period unit for days.
|
static PeriodUnit |
HistoricChronology.periodDays()
Gets the period unit for days.
|
static PeriodUnit |
HistoricChronology.periodEras()
Gets the period unit for eras.
|
static PeriodUnit |
JulianChronology.periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
CopticChronology.periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
HistoricChronology.periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
JulianChronology.periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
CopticChronology.periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
HistoricChronology.periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
JulianChronology.periodYears()
Gets the period unit for years.
|
static PeriodUnit |
CopticChronology.periodYears()
Gets the period unit for years.
|
static PeriodUnit |
HistoricChronology.periodYears()
Gets the period unit for years.
|
Copyright © 2014. All rights reserved.