RingJavafor Ring

java.time.temporal

16 classes of the module java.base.

Load them with:

using {
	"java.time.temporal"
}

All packages

ChronoField#

enum · extends Enum · java.time.temporal.ChronoField

Implements: TemporalField

Fields

NameTypeAccessIn Ring
NANO_OF_SECONDChronoFieldconstant · statico.NANO_OF_SECOND
NANO_OF_DAYChronoFieldconstant · statico.NANO_OF_DAY
MICRO_OF_SECONDChronoFieldconstant · statico.MICRO_OF_SECOND
MICRO_OF_DAYChronoFieldconstant · statico.MICRO_OF_DAY
MILLI_OF_SECONDChronoFieldconstant · statico.MILLI_OF_SECOND
MILLI_OF_DAYChronoFieldconstant · statico.MILLI_OF_DAY
SECOND_OF_MINUTEChronoFieldconstant · statico.SECOND_OF_MINUTE
SECOND_OF_DAYChronoFieldconstant · statico.SECOND_OF_DAY
MINUTE_OF_HOURChronoFieldconstant · statico.MINUTE_OF_HOUR
MINUTE_OF_DAYChronoFieldconstant · statico.MINUTE_OF_DAY
HOUR_OF_AMPMChronoFieldconstant · statico.HOUR_OF_AMPM
CLOCK_HOUR_OF_AMPMChronoFieldconstant · statico.CLOCK_HOUR_OF_AMPM
HOUR_OF_DAYChronoFieldconstant · statico.HOUR_OF_DAY
CLOCK_HOUR_OF_DAYChronoFieldconstant · statico.CLOCK_HOUR_OF_DAY
AMPM_OF_DAYChronoFieldconstant · statico.AMPM_OF_DAY
DAY_OF_WEEKChronoFieldconstant · statico.DAY_OF_WEEK
ALIGNED_DAY_OF_WEEK_IN_MONTHChronoFieldconstant · statico.ALIGNED_DAY_OF_WEEK_IN_MONTH
ALIGNED_DAY_OF_WEEK_IN_YEARChronoFieldconstant · statico.ALIGNED_DAY_OF_WEEK_IN_YEAR
DAY_OF_MONTHChronoFieldconstant · statico.DAY_OF_MONTH
DAY_OF_YEARChronoFieldconstant · statico.DAY_OF_YEAR
EPOCH_DAYChronoFieldconstant · statico.EPOCH_DAY
ALIGNED_WEEK_OF_MONTHChronoFieldconstant · statico.ALIGNED_WEEK_OF_MONTH
ALIGNED_WEEK_OF_YEARChronoFieldconstant · statico.ALIGNED_WEEK_OF_YEAR
MONTH_OF_YEARChronoFieldconstant · statico.MONTH_OF_YEAR
PROLEPTIC_MONTHChronoFieldconstant · statico.PROLEPTIC_MONTH
YEAR_OF_ERAChronoFieldconstant · statico.YEAR_OF_ERA
YEARChronoFieldconstant · statico.YEAR
ERAChronoFieldconstant · statico.ERA
INSTANT_SECONDSChronoFieldconstant · statico.INSTANT_SECONDS
OFFSET_SECONDSChronoFieldconstant · statico.OFFSET_SECONDS

Methods

MethodRing callJava overloads
adjustIntoadjustInto(temporal,newValue)Temporal adjustInto(Temporal temporal, long newValue)
checkValidIntValuecheckValidIntValue(value)int checkValidIntValue(long value)
checkValidValuecheckValidValue(value)long checkValidValue(long value)
getBaseUnitgetBaseUnit()TemporalUnit getBaseUnit()
getDisplayNamegetDisplayName(locale)String getDisplayName(Locale locale)
getFromgetFrom(temporal)long getFrom(TemporalAccessor temporal)
getRangeUnitgetRangeUnit()TemporalUnit getRangeUnit()
isDateBasedisDateBased()boolean isDateBased()
isSupportedByisSupportedBy(temporal)boolean isSupportedBy(TemporalAccessor temporal)
isTimeBasedisTimeBased()boolean isTimeBased()
rangerange()ValueRange range()
rangeRefinedByrangeRefinedBy(temporal)ValueRange rangeRefinedBy(TemporalAccessor temporal)
resolveresolve(fieldValues,partialTemporal,resolverStyle)TemporalAccessor resolve(Map fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static ChronoField valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static ChronoField[] values()

The methods and fields of Enum are inherited.

ChronoUnit#

enum · extends Enum · java.time.temporal.ChronoUnit

Implements: TemporalUnit

Fields

NameTypeAccessIn Ring
NANOSChronoUnitconstant · statico.NANOS
MICROSChronoUnitconstant · statico.MICROS
MILLISChronoUnitconstant · statico.MILLIS
SECONDSChronoUnitconstant · statico.SECONDS
MINUTESChronoUnitconstant · statico.MINUTES
HOURSChronoUnitconstant · statico.HOURS
HALF_DAYSChronoUnitconstant · statico.HALF_DAYS
DAYSChronoUnitconstant · statico.DAYS
WEEKSChronoUnitconstant · statico.WEEKS
MONTHSChronoUnitconstant · statico.MONTHS
YEARSChronoUnitconstant · statico.YEARS
DECADESChronoUnitconstant · statico.DECADES
CENTURIESChronoUnitconstant · statico.CENTURIES
MILLENNIAChronoUnitconstant · statico.MILLENNIA
ERASChronoUnitconstant · statico.ERAS
FOREVERChronoUnitconstant · statico.FOREVER

Methods

MethodRing callJava overloads
addToaddTo(temporal,amount)Temporal addTo(Temporal temporal, long amount)
betweenbetween(temporal1Inclusive,temporal2Exclusive)long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive)
getDurationgetDuration()Duration getDuration()
isDateBasedisDateBased()boolean isDateBased()
isDurationEstimatedisDurationEstimated()boolean isDurationEstimated()
isSupportedByisSupportedBy(temporal)boolean isSupportedBy(Temporal temporal)
isTimeBasedisTimeBased()boolean isTimeBased()
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static ChronoUnit valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static ChronoUnit[] values()

The methods and fields of Enum are inherited.

IsoFields#

class final · extends Object · java.time.temporal.IsoFields

Fields

NameTypeAccessIn Ring
DAY_OF_QUARTERTemporalFieldconstant · statico.DAY_OF_QUARTER
QUARTER_OF_YEARTemporalFieldconstant · statico.QUARTER_OF_YEAR
WEEK_OF_WEEK_BASED_YEARTemporalFieldconstant · statico.WEEK_OF_WEEK_BASED_YEAR
WEEK_BASED_YEARTemporalFieldconstant · statico.WEEK_BASED_YEAR
WEEK_BASED_YEARSTemporalUnitconstant · statico.WEEK_BASED_YEARS
QUARTER_YEARSTemporalUnitconstant · statico.QUARTER_YEARS

The methods and fields of Object are inherited.

JulianFields#

class final · extends Object · java.time.temporal.JulianFields

Fields

NameTypeAccessIn Ring
JULIAN_DAYTemporalFieldconstant · statico.JULIAN_DAY
MODIFIED_JULIAN_DAYTemporalFieldconstant · statico.MODIFIED_JULIAN_DAY
RATA_DIETemporalFieldconstant · statico.RATA_DIE

The methods and fields of Object are inherited.

Temporal#

interface · java.time.temporal.Temporal

Extends: TemporalAccessor

Methods

MethodRing callJava overloads
@get@get(field)int get(TemporalField field)
getLonggetLong(field)long getLong(TemporalField field)
isSupportedisSupported(unit)boolean isSupported(TemporalUnit unit)
boolean isSupported(TemporalField field)
minusminus(amount)
minus([amountToSubtract,unit])
minus([ :amountToSubtract = v, :unit = v ])
Temporal minus(TemporalAmount amount)
Temporal minus(long amountToSubtract, TemporalUnit unit)
plusplus(amount)
plus([amountToAdd,unit])
plus([ :amountToAdd = v, :unit = v ])
Temporal plus(TemporalAmount amount)
Temporal plus(long amountToAdd, TemporalUnit unit)
queryquery(query)Object query(TemporalQuery query)
rangerange(field)ValueRange range(TemporalField field)
untiluntil(endExclusive,unit)long until(Temporal endExclusive, TemporalUnit unit)
withwith(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

MethodRing callJava overloads
@get@get(field)int get(TemporalField field)
getLonggetLong(field)long getLong(TemporalField field)
isSupportedisSupported(field)boolean isSupported(TemporalField field)
queryquery(query)Object query(TemporalQuery query)
rangerange(field)ValueRange range(TemporalField field)

TemporalAdjuster#

interface · java.time.temporal.TemporalAdjuster

Methods

MethodRing callJava overloads
adjustIntoadjustInto(temporal)Temporal adjustInto(Temporal temporal)

TemporalAdjusters#

class final · extends Object · java.time.temporal.TemporalAdjusters

Methods

MethodRing callJava overloads
@next@next(dayOfWeek)static TemporalAdjuster next(DayOfWeek dayOfWeek)
dayOfWeekInMonthdayOfWeekInMonth(ordinal,dayOfWeek)static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek)
firstDayOfMonthfirstDayOfMonth()static TemporalAdjuster firstDayOfMonth()
firstDayOfNextMonthfirstDayOfNextMonth()static TemporalAdjuster firstDayOfNextMonth()
firstDayOfNextYearfirstDayOfNextYear()static TemporalAdjuster firstDayOfNextYear()
firstDayOfYearfirstDayOfYear()static TemporalAdjuster firstDayOfYear()
firstInMonthfirstInMonth(dayOfWeek)static TemporalAdjuster firstInMonth(DayOfWeek dayOfWeek)
lastDayOfMonthlastDayOfMonth()static TemporalAdjuster lastDayOfMonth()
lastDayOfYearlastDayOfYear()static TemporalAdjuster lastDayOfYear()
lastInMonthlastInMonth(dayOfWeek)static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek)
nextOrSamenextOrSame(dayOfWeek)static TemporalAdjuster nextOrSame(DayOfWeek dayOfWeek)
ofDateAdjusterofDateAdjuster(dateBasedAdjuster)static TemporalAdjuster ofDateAdjuster(UnaryOperator dateBasedAdjuster)
previousprevious(dayOfWeek)static TemporalAdjuster previous(DayOfWeek dayOfWeek)
previousOrSamepreviousOrSame(dayOfWeek)static TemporalAdjuster previousOrSame(DayOfWeek dayOfWeek)

The methods and fields of Object are inherited.

TemporalAmount#

interface · java.time.temporal.TemporalAmount

Methods

MethodRing callJava overloads
@get@get(unit)long get(TemporalUnit unit)
addToaddTo(temporal)Temporal addTo(Temporal temporal)
getUnitsgetUnits()List getUnits()
subtractFromsubtractFrom(temporal)Temporal subtractFrom(Temporal temporal)

TemporalField#

interface · java.time.temporal.TemporalField

Methods

MethodRing callJava overloads
adjustIntoadjustInto(temporal,newValue)Temporal adjustInto(Temporal temporal, long newValue)
getBaseUnitgetBaseUnit()TemporalUnit getBaseUnit()
getDisplayNamegetDisplayName(locale)String getDisplayName(Locale locale)
getFromgetFrom(temporal)long getFrom(TemporalAccessor temporal)
getRangeUnitgetRangeUnit()TemporalUnit getRangeUnit()
isDateBasedisDateBased()boolean isDateBased()
isSupportedByisSupportedBy(temporal)boolean isSupportedBy(TemporalAccessor temporal)
isTimeBasedisTimeBased()boolean isTimeBased()
rangerange()ValueRange range()
rangeRefinedByrangeRefinedBy(temporal)ValueRange rangeRefinedBy(TemporalAccessor temporal)
resolveresolve(fieldValues,partialTemporal,resolverStyle)TemporalAccessor resolve(Map fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)

TemporalQueries#

class final · extends Object · java.time.temporal.TemporalQueries

Methods

MethodRing callJava overloads
chronologychronology()static TemporalQuery chronology()
localDatelocalDate()static TemporalQuery localDate()
localTimelocalTime()static TemporalQuery localTime()
offsetoffset()static TemporalQuery offset()
precisionprecision()static TemporalQuery precision()
zonezone()static TemporalQuery zone()
zoneIdzoneId()static TemporalQuery zoneId()

The methods and fields of Object are inherited.

TemporalQuery#

interface · java.time.temporal.TemporalQuery

Methods

MethodRing callJava overloads
queryFromqueryFrom(temporal)Object queryFrom(TemporalAccessor temporal)

TemporalUnit#

interface · java.time.temporal.TemporalUnit

Methods

MethodRing callJava overloads
addToaddTo(temporal,amount)Temporal addTo(Temporal temporal, long amount)
betweenbetween(temporal1Inclusive,temporal2Exclusive)long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive)
getDurationgetDuration()Duration getDuration()
isDateBasedisDateBased()boolean isDateBased()
isDurationEstimatedisDurationEstimated()boolean isDurationEstimated()
isSupportedByisSupportedBy(temporal)boolean isSupportedBy(Temporal temporal)
isTimeBasedisTimeBased()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

MethodRing callJava overloads
checkValidIntValuecheckValidIntValue(value,field)int checkValidIntValue(long value, TemporalField field)
checkValidValuecheckValidValue(value,field)long checkValidValue(long value, TemporalField field)
getLargestMinimumgetLargestMinimum()long getLargestMinimum()
getMaximumgetMaximum()long getMaximum()
getMinimumgetMinimum()long getMinimum()
getSmallestMaximumgetSmallestMaximum()long getSmallestMaximum()
isFixedisFixed()boolean isFixed()
isIntValueisIntValue()boolean isIntValue()
isValidIntValueisValidIntValue(value)boolean isValidIntValue(long value)
isValidValueisValidValue(value)boolean isValidValue(long value)
ofof([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

NameTypeAccessIn Ring
ISOWeekFieldsconstant · statico.ISO
SUNDAY_STARTWeekFieldsconstant · statico.SUNDAY_START
WEEK_BASED_YEARSTemporalUnitconstant · statico.WEEK_BASED_YEARS

Methods

MethodRing callJava overloads
dayOfWeekdayOfWeek()TemporalField dayOfWeek()
getFirstDayOfWeekgetFirstDayOfWeek()DayOfWeek getFirstDayOfWeek()
getMinimalDaysInFirstWeekgetMinimalDaysInFirstWeek()int getMinimalDaysInFirstWeek()
ofof(locale)
of([firstDayOfWeek,minimalDaysInFirstWeek])
of([ :firstDayOfWeek = v, :minimalDaysInFirstWeek = v ])
static WeekFields of(Locale locale)
static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek)
weekBasedYearweekBasedYear()TemporalField weekBasedYear()
weekOfMonthweekOfMonth()TemporalField weekOfMonth()
weekOfWeekBasedYearweekOfWeekBasedYear()TemporalField weekOfWeekBasedYear()
weekOfYearweekOfYear()TemporalField weekOfYear()

The methods and fields of Object are inherited.

RingJava - use Java classes and methods from Ring programs.