java.time.temporal
16 classes of the module java.base.
Load them with:
using {
"java.time.temporal"
}
ChronoField#
enum · extends Enum · java.time.temporal.ChronoField
Implements: TemporalField
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NANO_OF_SECOND | ChronoField | constant · static | o.NANO_OF_SECOND |
NANO_OF_DAY | ChronoField | constant · static | o.NANO_OF_DAY |
MICRO_OF_SECOND | ChronoField | constant · static | o.MICRO_OF_SECOND |
MICRO_OF_DAY | ChronoField | constant · static | o.MICRO_OF_DAY |
MILLI_OF_SECOND | ChronoField | constant · static | o.MILLI_OF_SECOND |
MILLI_OF_DAY | ChronoField | constant · static | o.MILLI_OF_DAY |
SECOND_OF_MINUTE | ChronoField | constant · static | o.SECOND_OF_MINUTE |
SECOND_OF_DAY | ChronoField | constant · static | o.SECOND_OF_DAY |
MINUTE_OF_HOUR | ChronoField | constant · static | o.MINUTE_OF_HOUR |
MINUTE_OF_DAY | ChronoField | constant · static | o.MINUTE_OF_DAY |
HOUR_OF_AMPM | ChronoField | constant · static | o.HOUR_OF_AMPM |
CLOCK_HOUR_OF_AMPM | ChronoField | constant · static | o.CLOCK_HOUR_OF_AMPM |
HOUR_OF_DAY | ChronoField | constant · static | o.HOUR_OF_DAY |
CLOCK_HOUR_OF_DAY | ChronoField | constant · static | o.CLOCK_HOUR_OF_DAY |
AMPM_OF_DAY | ChronoField | constant · static | o.AMPM_OF_DAY |
DAY_OF_WEEK | ChronoField | constant · static | o.DAY_OF_WEEK |
ALIGNED_DAY_OF_WEEK_IN_MONTH | ChronoField | constant · static | o.ALIGNED_DAY_OF_WEEK_IN_MONTH |
ALIGNED_DAY_OF_WEEK_IN_YEAR | ChronoField | constant · static | o.ALIGNED_DAY_OF_WEEK_IN_YEAR |
DAY_OF_MONTH | ChronoField | constant · static | o.DAY_OF_MONTH |
DAY_OF_YEAR | ChronoField | constant · static | o.DAY_OF_YEAR |
EPOCH_DAY | ChronoField | constant · static | o.EPOCH_DAY |
ALIGNED_WEEK_OF_MONTH | ChronoField | constant · static | o.ALIGNED_WEEK_OF_MONTH |
ALIGNED_WEEK_OF_YEAR | ChronoField | constant · static | o.ALIGNED_WEEK_OF_YEAR |
MONTH_OF_YEAR | ChronoField | constant · static | o.MONTH_OF_YEAR |
PROLEPTIC_MONTH | ChronoField | constant · static | o.PROLEPTIC_MONTH |
YEAR_OF_ERA | ChronoField | constant · static | o.YEAR_OF_ERA |
YEAR | ChronoField | constant · static | o.YEAR |
ERA | ChronoField | constant · static | o.ERA |
INSTANT_SECONDS | ChronoField | constant · static | o.INSTANT_SECONDS |
OFFSET_SECONDS | ChronoField | constant · static | o.OFFSET_SECONDS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
adjustInto | adjustInto(temporal,newValue) | Temporal adjustInto(Temporal temporal, long newValue) |
checkValidIntValue | checkValidIntValue(value) | int checkValidIntValue(long value) |
checkValidValue | checkValidValue(value) | long checkValidValue(long value) |
getBaseUnit | getBaseUnit() | TemporalUnit getBaseUnit() |
getDisplayName | getDisplayName(locale) | String getDisplayName(Locale locale) |
getFrom | getFrom(temporal) | long getFrom(TemporalAccessor temporal) |
getRangeUnit | getRangeUnit() | TemporalUnit getRangeUnit() |
isDateBased | isDateBased() | boolean isDateBased() |
isSupportedBy | isSupportedBy(temporal) | boolean isSupportedBy(TemporalAccessor temporal) |
isTimeBased | isTimeBased() | boolean isTimeBased() |
range | range() | ValueRange range() |
rangeRefinedBy | rangeRefinedBy(temporal) | ValueRange rangeRefinedBy(TemporalAccessor temporal) |
resolve | resolve(fieldValues,partialTemporal,resolverStyle) | TemporalAccessor resolve(Map fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static ChronoField valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static ChronoField[] values() |
The methods and fields of Enum are inherited.
ChronoUnit#
enum · extends Enum · java.time.temporal.ChronoUnit
Implements: TemporalUnit
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NANOS | ChronoUnit | constant · static | o.NANOS |
MICROS | ChronoUnit | constant · static | o.MICROS |
MILLIS | ChronoUnit | constant · static | o.MILLIS |
SECONDS | ChronoUnit | constant · static | o.SECONDS |
MINUTES | ChronoUnit | constant · static | o.MINUTES |
HOURS | ChronoUnit | constant · static | o.HOURS |
HALF_DAYS | ChronoUnit | constant · static | o.HALF_DAYS |
DAYS | ChronoUnit | constant · static | o.DAYS |
WEEKS | ChronoUnit | constant · static | o.WEEKS |
MONTHS | ChronoUnit | constant · static | o.MONTHS |
YEARS | ChronoUnit | constant · static | o.YEARS |
DECADES | ChronoUnit | constant · static | o.DECADES |
CENTURIES | ChronoUnit | constant · static | o.CENTURIES |
MILLENNIA | ChronoUnit | constant · static | o.MILLENNIA |
ERAS | ChronoUnit | constant · static | o.ERAS |
FOREVER | ChronoUnit | constant · static | o.FOREVER |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addTo | addTo(temporal,amount) | Temporal addTo(Temporal temporal, long amount) |
between | between(temporal1Inclusive,temporal2Exclusive) | long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) |
getDuration | getDuration() | Duration getDuration() |
isDateBased | isDateBased() | boolean isDateBased() |
isDurationEstimated | isDurationEstimated() | boolean isDurationEstimated() |
isSupportedBy | isSupportedBy(temporal) | boolean isSupportedBy(Temporal temporal) |
isTimeBased | isTimeBased() | boolean isTimeBased() |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static ChronoUnit valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static ChronoUnit[] values() |
The methods and fields of Enum are inherited.
IsoFields#
class final · extends Object · java.time.temporal.IsoFields
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DAY_OF_QUARTER | TemporalField | constant · static | o.DAY_OF_QUARTER |
QUARTER_OF_YEAR | TemporalField | constant · static | o.QUARTER_OF_YEAR |
WEEK_OF_WEEK_BASED_YEAR | TemporalField | constant · static | o.WEEK_OF_WEEK_BASED_YEAR |
WEEK_BASED_YEAR | TemporalField | constant · static | o.WEEK_BASED_YEAR |
WEEK_BASED_YEARS | TemporalUnit | constant · static | o.WEEK_BASED_YEARS |
QUARTER_YEARS | TemporalUnit | constant · static | o.QUARTER_YEARS |
The methods and fields of Object are inherited.
JulianFields#
class final · extends Object · java.time.temporal.JulianFields
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
JULIAN_DAY | TemporalField | constant · static | o.JULIAN_DAY |
MODIFIED_JULIAN_DAY | TemporalField | constant · static | o.MODIFIED_JULIAN_DAY |
RATA_DIE | TemporalField | constant · static | o.RATA_DIE |
The methods and fields of Object are inherited.
Temporal#
interface · java.time.temporal.Temporal
Extends: TemporalAccessor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
getLong | getLong(field) | long getLong(TemporalField field) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amount)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | Temporal minus(TemporalAmount amount)Temporal minus(long amountToSubtract, TemporalUnit unit) |
plus | plus(amount)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | Temporal plus(TemporalAmount amount)Temporal plus(long amountToAdd, TemporalUnit unit) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | Temporal with(TemporalAdjuster adjuster)Temporal with(TemporalField field, long newValue) |
TemporalAccessor#
interface · java.time.temporal.TemporalAccessor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
getLong | getLong(field) | long getLong(TemporalField field) |
isSupported | isSupported(field) | boolean isSupported(TemporalField field) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
TemporalAdjuster#
interface · java.time.temporal.TemporalAdjuster
Methods
| Method | Ring call | Java overloads |
|---|---|---|
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
TemporalAdjusters#
class final · extends Object · java.time.temporal.TemporalAdjusters
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@next | @next(dayOfWeek) | static TemporalAdjuster next(DayOfWeek dayOfWeek) |
dayOfWeekInMonth | dayOfWeekInMonth(ordinal,dayOfWeek) | static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) |
firstDayOfMonth | firstDayOfMonth() | static TemporalAdjuster firstDayOfMonth() |
firstDayOfNextMonth | firstDayOfNextMonth() | static TemporalAdjuster firstDayOfNextMonth() |
firstDayOfNextYear | firstDayOfNextYear() | static TemporalAdjuster firstDayOfNextYear() |
firstDayOfYear | firstDayOfYear() | static TemporalAdjuster firstDayOfYear() |
firstInMonth | firstInMonth(dayOfWeek) | static TemporalAdjuster firstInMonth(DayOfWeek dayOfWeek) |
lastDayOfMonth | lastDayOfMonth() | static TemporalAdjuster lastDayOfMonth() |
lastDayOfYear | lastDayOfYear() | static TemporalAdjuster lastDayOfYear() |
lastInMonth | lastInMonth(dayOfWeek) | static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek) |
nextOrSame | nextOrSame(dayOfWeek) | static TemporalAdjuster nextOrSame(DayOfWeek dayOfWeek) |
ofDateAdjuster | ofDateAdjuster(dateBasedAdjuster) | static TemporalAdjuster ofDateAdjuster(UnaryOperator dateBasedAdjuster) |
previous | previous(dayOfWeek) | static TemporalAdjuster previous(DayOfWeek dayOfWeek) |
previousOrSame | previousOrSame(dayOfWeek) | static TemporalAdjuster previousOrSame(DayOfWeek dayOfWeek) |
The methods and fields of Object are inherited.
TemporalAmount#
interface · java.time.temporal.TemporalAmount
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(unit) | long get(TemporalUnit unit) |
addTo | addTo(temporal) | Temporal addTo(Temporal temporal) |
getUnits | getUnits() | List getUnits() |
subtractFrom | subtractFrom(temporal) | Temporal subtractFrom(Temporal temporal) |
TemporalField#
interface · java.time.temporal.TemporalField
Methods
| Method | Ring call | Java overloads |
|---|---|---|
adjustInto | adjustInto(temporal,newValue) | Temporal adjustInto(Temporal temporal, long newValue) |
getBaseUnit | getBaseUnit() | TemporalUnit getBaseUnit() |
getDisplayName | getDisplayName(locale) | String getDisplayName(Locale locale) |
getFrom | getFrom(temporal) | long getFrom(TemporalAccessor temporal) |
getRangeUnit | getRangeUnit() | TemporalUnit getRangeUnit() |
isDateBased | isDateBased() | boolean isDateBased() |
isSupportedBy | isSupportedBy(temporal) | boolean isSupportedBy(TemporalAccessor temporal) |
isTimeBased | isTimeBased() | boolean isTimeBased() |
range | range() | ValueRange range() |
rangeRefinedBy | rangeRefinedBy(temporal) | ValueRange rangeRefinedBy(TemporalAccessor temporal) |
resolve | resolve(fieldValues,partialTemporal,resolverStyle) | TemporalAccessor resolve(Map fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) |
TemporalQueries#
class final · extends Object · java.time.temporal.TemporalQueries
Methods
| Method | Ring call | Java overloads |
|---|---|---|
chronology | chronology() | static TemporalQuery chronology() |
localDate | localDate() | static TemporalQuery localDate() |
localTime | localTime() | static TemporalQuery localTime() |
offset | offset() | static TemporalQuery offset() |
precision | precision() | static TemporalQuery precision() |
zone | zone() | static TemporalQuery zone() |
zoneId | zoneId() | static TemporalQuery zoneId() |
The methods and fields of Object are inherited.
TemporalQuery#
interface · java.time.temporal.TemporalQuery
Methods
| Method | Ring call | Java overloads |
|---|---|---|
queryFrom | queryFrom(temporal) | Object queryFrom(TemporalAccessor temporal) |
TemporalUnit#
interface · java.time.temporal.TemporalUnit
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addTo | addTo(temporal,amount) | Temporal addTo(Temporal temporal, long amount) |
between | between(temporal1Inclusive,temporal2Exclusive) | long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) |
getDuration | getDuration() | Duration getDuration() |
isDateBased | isDateBased() | boolean isDateBased() |
isDurationEstimated | isDurationEstimated() | boolean isDurationEstimated() |
isSupportedBy | isSupportedBy(temporal) | boolean isSupportedBy(Temporal temporal) |
isTimeBased | isTimeBased() | boolean isTimeBased() |
UnsupportedTemporalTypeException#
class · extends DateTimeException · java.time.temporal.UnsupportedTemporalTypeException
Constructors
new UnsupportedTemporalTypeException(String message) |
new UnsupportedTemporalTypeException(String message, Throwable cause) |
Ring: new UnsupportedTemporalTypeException(args) uses the constructor with the fewest parameters (at least one); new UnsupportedTemporalTypeException makes the object with the constructor without parameters; the others: (new UnsupportedTemporalTypeException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of DateTimeException are inherited.
ValueRange#
class final · extends Object · java.time.temporal.ValueRange
Implements: Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
checkValidIntValue | checkValidIntValue(value,field) | int checkValidIntValue(long value, TemporalField field) |
checkValidValue | checkValidValue(value,field) | long checkValidValue(long value, TemporalField field) |
getLargestMinimum | getLargestMinimum() | long getLargestMinimum() |
getMaximum | getMaximum() | long getMaximum() |
getMinimum | getMinimum() | long getMinimum() |
getSmallestMaximum | getSmallestMaximum() | long getSmallestMaximum() |
isFixed | isFixed() | boolean isFixed() |
isIntValue | isIntValue() | boolean isIntValue() |
isValidIntValue | isValidIntValue(value) | boolean isValidIntValue(long value) |
isValidValue | isValidValue(value) | boolean isValidValue(long value) |
of | of([min,max])of([ :min = v, :max = v ])of([min,maxSmallest,maxLargest])of([ :min = v, :maxSmallest = v, :maxLargest = v ])of([minSmallest,minLargest,maxSmallest,maxLargest])of([ :minSmallest = v, :minLargest = v, :maxSmallest = v, :maxLargest = v ]) | static ValueRange of(long min, long max)static ValueRange of(long min, long maxSmallest, long maxLargest)static ValueRange of(long minSmallest, long minLargest, long maxSmallest, long maxLargest) |
The methods and fields of Object are inherited.
WeekFields#
class final · extends Object · java.time.temporal.WeekFields
Implements: Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ISO | WeekFields | constant · static | o.ISO |
SUNDAY_START | WeekFields | constant · static | o.SUNDAY_START |
WEEK_BASED_YEARS | TemporalUnit | constant · static | o.WEEK_BASED_YEARS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dayOfWeek | dayOfWeek() | TemporalField dayOfWeek() |
getFirstDayOfWeek | getFirstDayOfWeek() | DayOfWeek getFirstDayOfWeek() |
getMinimalDaysInFirstWeek | getMinimalDaysInFirstWeek() | int getMinimalDaysInFirstWeek() |
of | of(locale)of([firstDayOfWeek,minimalDaysInFirstWeek])of([ :firstDayOfWeek = v, :minimalDaysInFirstWeek = v ]) | static WeekFields of(Locale locale)static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) |
weekBasedYear | weekBasedYear() | TemporalField weekBasedYear() |
weekOfMonth | weekOfMonth() | TemporalField weekOfMonth() |
weekOfWeekBasedYear | weekOfWeekBasedYear() | TemporalField weekOfWeekBasedYear() |
weekOfYear | weekOfYear() | TemporalField weekOfYear() |
The methods and fields of Object are inherited.