java.time
19 classes of the module java.base.
Load them with:
using {
"java.time"
}
Clock#
abstract · extends Object · java.time.Clock
Implements: InstantSource
Methods
| Method | Ring call | Java overloads |
|---|---|---|
fixed | fixed(fixedInstant,zone) | static Clock fixed(Instant fixedInstant, ZoneId zone) |
getZone | getZone() | ZoneId getZone() |
instant | instant() | Instant instant() |
millis | millis() | long millis() |
offset | offset(baseClock,offsetDuration) | static Clock offset(Clock baseClock, Duration offsetDuration) |
system | system(zone) | static Clock system(ZoneId zone) |
systemDefaultZone | systemDefaultZone() | static Clock systemDefaultZone() |
systemUTC | systemUTC() | static Clock systemUTC() |
tick | tick(baseClock,tickDuration) | static Clock tick(Clock baseClock, Duration tickDuration) |
tickMillis | tickMillis(zone) | static Clock tickMillis(ZoneId zone) |
tickMinutes | tickMinutes(zone) | static Clock tickMinutes(ZoneId zone) |
tickSeconds | tickSeconds(zone) | static Clock tickSeconds(ZoneId zone) |
withZone | withZone(zone) | Clock withZone(ZoneId zone) |
The methods and fields of Object are inherited.
DateTimeException#
class · extends RuntimeException · java.time.DateTimeException
Constructors
new DateTimeException(String message) |
new DateTimeException(String message, Throwable cause) |
Ring: new DateTimeException(args) uses the constructor with the fewest parameters (at least one); new DateTimeException makes the object with the constructor without parameters; the others: (new DateTimeException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
DayOfWeek#
enum · extends Enum · java.time.DayOfWeek
Implements: TemporalAccessor, TemporalAdjuster
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MONDAY | DayOfWeek | constant · static | o.MONDAY |
TUESDAY | DayOfWeek | constant · static | o.TUESDAY |
WEDNESDAY | DayOfWeek | constant · static | o.WEDNESDAY |
THURSDAY | DayOfWeek | constant · static | o.THURSDAY |
FRIDAY | DayOfWeek | constant · static | o.FRIDAY |
SATURDAY | DayOfWeek | constant · static | o.SATURDAY |
SUNDAY | DayOfWeek | constant · static | o.SUNDAY |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
from | from(temporal) | static DayOfWeek from(TemporalAccessor temporal) |
getDisplayName | getDisplayName(style,locale) | String getDisplayName(TextStyle style, Locale locale) |
getLong | getLong(field) | long getLong(TemporalField field) |
getValue | getValue() | int getValue() |
isSupported | isSupported(field) | boolean isSupported(TemporalField field) |
minus | minus(days) | DayOfWeek minus(long days) |
of | of(dayOfWeek) | static DayOfWeek of(int dayOfWeek) |
plus | plus(days) | DayOfWeek plus(long days) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static DayOfWeek valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static DayOfWeek[] values() |
The methods and fields of Enum are inherited.
Duration#
class final · extends Object · java.time.Duration
Implements: TemporalAmount, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ZERO | Duration | constant · static | o.ZERO |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(unit) | long get(TemporalUnit unit) |
abs | abs() | Duration abs() |
addTo | addTo(temporal) | Temporal addTo(Temporal temporal) |
between | between(startInclusive,endExclusive) | static Duration between(Temporal startInclusive, Temporal endExclusive) |
compareTo | compareTo(otherDuration) | int compareTo(Duration otherDuration) |
dividedBy | dividedBy(divisor) | Duration dividedBy(long divisor)long dividedBy(Duration divisor) |
from | from(amount) | static Duration from(TemporalAmount amount) |
getNano | getNano() | int getNano() |
getSeconds | getSeconds() | long getSeconds() |
getUnits | getUnits() | List getUnits() |
isNegative | isNegative() | boolean isNegative() |
isPositive | isPositive() | boolean isPositive() |
isZero | isZero() | boolean isZero() |
minus | minus(duration)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | Duration minus(Duration duration)Duration minus(long amountToSubtract, TemporalUnit unit) |
minusDays | minusDays(daysToSubtract) | Duration minusDays(long daysToSubtract) |
minusHours | minusHours(hoursToSubtract) | Duration minusHours(long hoursToSubtract) |
minusMillis | minusMillis(millisToSubtract) | Duration minusMillis(long millisToSubtract) |
minusMinutes | minusMinutes(minutesToSubtract) | Duration minusMinutes(long minutesToSubtract) |
minusNanos | minusNanos(nanosToSubtract) | Duration minusNanos(long nanosToSubtract) |
minusSeconds | minusSeconds(secondsToSubtract) | Duration minusSeconds(long secondsToSubtract) |
multipliedBy | multipliedBy(multiplicand) | Duration multipliedBy(long multiplicand) |
negated | negated() | Duration negated() |
of | of(amount,unit) | static Duration of(long amount, TemporalUnit unit) |
ofDays | ofDays(days) | static Duration ofDays(long days) |
ofHours | ofHours(hours) | static Duration ofHours(long hours) |
ofMillis | ofMillis(millis) | static Duration ofMillis(long millis) |
ofMinutes | ofMinutes(minutes) | static Duration ofMinutes(long minutes) |
ofNanos | ofNanos(nanos) | static Duration ofNanos(long nanos) |
ofSeconds | ofSeconds(seconds)ofSeconds([seconds,nanoAdjustment])ofSeconds([ :seconds = v, :nanoAdjustment = v ]) | static Duration ofSeconds(long seconds)static Duration ofSeconds(long seconds, long nanoAdjustment) |
parse | parse(text) | static Duration parse(CharSequence text) |
plus | plus(duration)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | Duration plus(Duration duration)Duration plus(long amountToAdd, TemporalUnit unit) |
plusDays | plusDays(daysToAdd) | Duration plusDays(long daysToAdd) |
plusHours | plusHours(hoursToAdd) | Duration plusHours(long hoursToAdd) |
plusMillis | plusMillis(millisToAdd) | Duration plusMillis(long millisToAdd) |
plusMinutes | plusMinutes(minutesToAdd) | Duration plusMinutes(long minutesToAdd) |
plusNanos | plusNanos(nanosToAdd) | Duration plusNanos(long nanosToAdd) |
plusSeconds | plusSeconds(secondsToAdd) | Duration plusSeconds(long secondsToAdd) |
subtractFrom | subtractFrom(temporal) | Temporal subtractFrom(Temporal temporal) |
toDays | toDays() | long toDays() |
toDaysPart | toDaysPart() | long toDaysPart() |
toHours | toHours() | long toHours() |
toHoursPart | toHoursPart() | int toHoursPart() |
toMillis | toMillis() | long toMillis() |
toMillisPart | toMillisPart() | int toMillisPart() |
toMinutes | toMinutes() | long toMinutes() |
toMinutesPart | toMinutesPart() | int toMinutesPart() |
toNanos | toNanos() | long toNanos() |
toNanosPart | toNanosPart() | int toNanosPart() |
toSeconds | toSeconds() | long toSeconds() |
toSecondsPart | toSecondsPart() | int toSecondsPart() |
truncatedTo | truncatedTo(unit) | Duration truncatedTo(TemporalUnit unit) |
withNanos | withNanos(nanoOfSecond) | Duration withNanos(int nanoOfSecond) |
withSeconds | withSeconds(seconds) | Duration withSeconds(long seconds) |
The methods and fields of Object are inherited.
Instant#
class final · extends Object · java.time.Instant
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
EPOCH | Instant | constant · static | o.EPOCH |
MIN | Instant | constant · static | o.MIN |
MAX | Instant | constant · static | o.MAX |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static Instant now(Clock clock) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atOffset | atOffset(offset) | OffsetDateTime atOffset(ZoneOffset offset) |
atZone | atZone(zone) | ZonedDateTime atZone(ZoneId zone) |
compareTo | compareTo(otherInstant) | int compareTo(Instant otherInstant) |
from | from(temporal) | static Instant from(TemporalAccessor temporal) |
getEpochSecond | getEpochSecond() | long getEpochSecond() |
getLong | getLong(field) | long getLong(TemporalField field) |
getNano | getNano() | int getNano() |
isAfter | isAfter(otherInstant) | boolean isAfter(Instant otherInstant) |
isBefore | isBefore(otherInstant) | boolean isBefore(Instant otherInstant) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | Instant minus(TemporalAmount amountToSubtract)Instant minus(long amountToSubtract, TemporalUnit unit) |
minusMillis | minusMillis(millisToSubtract) | Instant minusMillis(long millisToSubtract) |
minusNanos | minusNanos(nanosToSubtract) | Instant minusNanos(long nanosToSubtract) |
minusSeconds | minusSeconds(secondsToSubtract) | Instant minusSeconds(long secondsToSubtract) |
now | now() | static Instant now() |
ofEpochMilli | ofEpochMilli(epochMilli) | static Instant ofEpochMilli(long epochMilli) |
ofEpochSecond | ofEpochSecond(epochSecond)ofEpochSecond([epochSecond,nanoAdjustment])ofEpochSecond([ :epochSecond = v, :nanoAdjustment = v ]) | static Instant ofEpochSecond(long epochSecond)static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) |
parse | parse(text) | static Instant parse(CharSequence text) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | Instant plus(TemporalAmount amountToAdd)Instant plus(long amountToAdd, TemporalUnit unit) |
plusMillis | plusMillis(millisToAdd) | Instant plusMillis(long millisToAdd) |
plusNanos | plusNanos(nanosToAdd) | Instant plusNanos(long nanosToAdd) |
plusSeconds | plusSeconds(secondsToAdd) | Instant plusSeconds(long secondsToAdd) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochMilli | toEpochMilli() | long toEpochMilli() |
truncatedTo | truncatedTo(unit) | Instant truncatedTo(TemporalUnit unit) |
until | until(endExclusive)until([endExclusive,unit])until([ :endExclusive = v, :unit = v ]) | Duration until(Instant endExclusive)long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | Instant with(TemporalAdjuster adjuster)Instant with(TemporalField field, long newValue) |
The methods and fields of Object are inherited.
InstantSource#
interface · java.time.InstantSource
Methods
| Method | Ring call | Java overloads |
|---|---|---|
fixed | fixed(fixedInstant) | static InstantSource fixed(Instant fixedInstant) |
instant | instant() | Instant instant() |
millis | millis() | long millis() |
offset | offset(baseSource,offsetDuration) | static InstantSource offset(InstantSource baseSource, Duration offsetDuration) |
system | system() | static InstantSource system() |
tick | tick(baseSource,tickDuration) | static InstantSource tick(InstantSource baseSource, Duration tickDuration) |
withZone | withZone(zone) | Clock withZone(ZoneId zone) |
LocalDate#
class final · extends Object · java.time.LocalDate
Implements: Temporal, TemporalAdjuster, ChronoLocalDate, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN | LocalDate | constant · static | o.MIN |
MAX | LocalDate | constant · static | o.MAX |
EPOCH | LocalDate | constant · static | o.EPOCH |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@atStartOfDay | @atStartOfDay(zone) | ZonedDateTime atStartOfDay(ZoneId zone) |
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static LocalDate now(Clock clock)static LocalDate now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atStartOfDay | atStartOfDay() | LocalDateTime atStartOfDay() |
atTime | atTime(time)atTime([hour,minute])atTime([ :hour = v, :minute = v ])atTime([hour,minute,second])atTime([ :hour = v, :minute = v, :second = v ])atTime([hour,minute,second,nanoOfSecond])atTime([ :hour = v, :minute = v, :second = v, :nanoOfSecond = v ]) | LocalDateTime atTime(LocalTime time)OffsetDateTime atTime(OffsetTime time)LocalDateTime atTime(int hour, int minute)LocalDateTime atTime(int hour, int minute, int second)LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) |
compareTo | compareTo(other) | int compareTo(ChronoLocalDate other) |
datesUntil | datesUntil(endExclusive)datesUntil([endExclusive,step])datesUntil([ :endExclusive = v, :step = v ]) | Stream datesUntil(LocalDate endExclusive)Stream datesUntil(LocalDate endExclusive, Period step) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static LocalDate from(TemporalAccessor temporal) |
getChronology | getChronology() | IsoChronology getChronology() |
getDayOfMonth | getDayOfMonth() | int getDayOfMonth() |
getDayOfWeek | getDayOfWeek() | DayOfWeek getDayOfWeek() |
getDayOfYear | getDayOfYear() | int getDayOfYear() |
getEra | getEra() | IsoEra getEra() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
getYear | getYear() | int getYear() |
isAfter | isAfter(other) | boolean isAfter(ChronoLocalDate other) |
isBefore | isBefore(other) | boolean isBefore(ChronoLocalDate other) |
isEqual | isEqual(other) | boolean isEqual(ChronoLocalDate other) |
isLeapYear | isLeapYear() | boolean isLeapYear() |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
lengthOfMonth | lengthOfMonth() | int lengthOfMonth() |
lengthOfYear | lengthOfYear() | int lengthOfYear() |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | LocalDate minus(TemporalAmount amountToSubtract)LocalDate minus(long amountToSubtract, TemporalUnit unit) |
minusDays | minusDays(daysToSubtract) | LocalDate minusDays(long daysToSubtract) |
minusMonths | minusMonths(monthsToSubtract) | LocalDate minusMonths(long monthsToSubtract) |
minusWeeks | minusWeeks(weeksToSubtract) | LocalDate minusWeeks(long weeksToSubtract) |
minusYears | minusYears(yearsToSubtract) | LocalDate minusYears(long yearsToSubtract) |
now | now() | static LocalDate now() |
of | of(year,month,dayOfMonth) | static LocalDate of(int year, int month, int dayOfMonth)static LocalDate of(int year, Month month, int dayOfMonth) |
ofEpochDay | ofEpochDay(epochDay) | static LocalDate ofEpochDay(long epochDay) |
ofInstant | ofInstant(instant,zone) | static LocalDate ofInstant(Instant instant, ZoneId zone) |
ofYearDay | ofYearDay(year,dayOfYear) | static LocalDate ofYearDay(int year, int dayOfYear) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static LocalDate parse(CharSequence text)static LocalDate parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | LocalDate plus(TemporalAmount amountToAdd)LocalDate plus(long amountToAdd, TemporalUnit unit) |
plusDays | plusDays(daysToAdd) | LocalDate plusDays(long daysToAdd) |
plusMonths | plusMonths(monthsToAdd) | LocalDate plusMonths(long monthsToAdd) |
plusWeeks | plusWeeks(weeksToAdd) | LocalDate plusWeeks(long weeksToAdd) |
plusYears | plusYears(yearsToAdd) | LocalDate plusYears(long yearsToAdd) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochDay | toEpochDay() | long toEpochDay() |
toEpochSecond | toEpochSecond(time,offset) | long toEpochSecond(LocalTime time, ZoneOffset offset) |
until | until(endDateExclusive)until([endExclusive,unit])until([ :endExclusive = v, :unit = v ]) | Period until(ChronoLocalDate endDateExclusive)long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | LocalDate with(TemporalAdjuster adjuster)LocalDate with(TemporalField field, long newValue) |
withDayOfMonth | withDayOfMonth(dayOfMonth) | LocalDate withDayOfMonth(int dayOfMonth) |
withDayOfYear | withDayOfYear(dayOfYear) | LocalDate withDayOfYear(int dayOfYear) |
withMonth | withMonth(month) | LocalDate withMonth(int month) |
withYear | withYear(year) | LocalDate withYear(int year) |
The methods and fields of Object are inherited.
LocalDateTime#
class final · extends Object · java.time.LocalDateTime
Implements: Temporal, TemporalAdjuster, ChronoLocalDateTime, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN | LocalDateTime | constant · static | o.MIN |
MAX | LocalDateTime | constant · static | o.MAX |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(zone) | static LocalDateTime now(ZoneId zone)static LocalDateTime now(Clock clock) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atOffset | atOffset(offset) | OffsetDateTime atOffset(ZoneOffset offset) |
atZone | atZone(zone) | ZonedDateTime atZone(ZoneId zone) |
compareTo | compareTo(other) | int compareTo(ChronoLocalDateTime other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static LocalDateTime from(TemporalAccessor temporal) |
getChronology | getChronology() | Chronology getChronology() |
getDayOfMonth | getDayOfMonth() | int getDayOfMonth() |
getDayOfWeek | getDayOfWeek() | DayOfWeek getDayOfWeek() |
getDayOfYear | getDayOfYear() | int getDayOfYear() |
getHour | getHour() | int getHour() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMinute | getMinute() | int getMinute() |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
getNano | getNano() | int getNano() |
getSecond | getSecond() | int getSecond() |
getYear | getYear() | int getYear() |
isAfter | isAfter(other) | boolean isAfter(ChronoLocalDateTime other) |
isBefore | isBefore(other) | boolean isBefore(ChronoLocalDateTime other) |
isEqual | isEqual(other) | boolean isEqual(ChronoLocalDateTime other) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | LocalDateTime minus(TemporalAmount amountToSubtract)LocalDateTime minus(long amountToSubtract, TemporalUnit unit) |
minusDays | minusDays(days) | LocalDateTime minusDays(long days) |
minusHours | minusHours(hours) | LocalDateTime minusHours(long hours) |
minusMinutes | minusMinutes(minutes) | LocalDateTime minusMinutes(long minutes) |
minusMonths | minusMonths(months) | LocalDateTime minusMonths(long months) |
minusNanos | minusNanos(nanos) | LocalDateTime minusNanos(long nanos) |
minusSeconds | minusSeconds(seconds) | LocalDateTime minusSeconds(long seconds) |
minusWeeks | minusWeeks(weeks) | LocalDateTime minusWeeks(long weeks) |
minusYears | minusYears(years) | LocalDateTime minusYears(long years) |
now | now() | static LocalDateTime now() |
of | of([date,time])of([ :date = v, :time = v ])of([year,month,dayOfMonth,hour,minute])of([ :year = v, :month = v, :dayOfMonth = v, :hour = v, :minute = v ])of([year,month,dayOfMonth,hour,minute,second])of([ :year = v, :month = v, :dayOfMonth = v, :hour = v, :minute = v, :second = v ])of([year,month,dayOfMonth,hour,minute,second,nanoOfSecond])of([ :year = v, :month = v, :dayOfMonth = v, :hour = v, :minute = v, :second = v, :nanoOfSecond = v ]) | static LocalDateTime of(LocalDate date, LocalTime time)static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute)static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute)static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second)static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second)static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond)static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) |
ofEpochSecond | ofEpochSecond(epochSecond,nanoOfSecond,offset) | static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) |
ofInstant | ofInstant(instant,zone) | static LocalDateTime ofInstant(Instant instant, ZoneId zone) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static LocalDateTime parse(CharSequence text)static LocalDateTime parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | LocalDateTime plus(TemporalAmount amountToAdd)LocalDateTime plus(long amountToAdd, TemporalUnit unit) |
plusDays | plusDays(days) | LocalDateTime plusDays(long days) |
plusHours | plusHours(hours) | LocalDateTime plusHours(long hours) |
plusMinutes | plusMinutes(minutes) | LocalDateTime plusMinutes(long minutes) |
plusMonths | plusMonths(months) | LocalDateTime plusMonths(long months) |
plusNanos | plusNanos(nanos) | LocalDateTime plusNanos(long nanos) |
plusSeconds | plusSeconds(seconds) | LocalDateTime plusSeconds(long seconds) |
plusWeeks | plusWeeks(weeks) | LocalDateTime plusWeeks(long weeks) |
plusYears | plusYears(years) | LocalDateTime plusYears(long years) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochSecond | toEpochSecond(offset) | long toEpochSecond(ZoneOffset offset) |
toInstant | toInstant(offset) | Instant toInstant(ZoneOffset offset) |
toLocalDate | toLocalDate() | LocalDate toLocalDate() |
toLocalTime | toLocalTime() | LocalTime toLocalTime() |
truncatedTo | truncatedTo(unit) | LocalDateTime truncatedTo(TemporalUnit unit) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | LocalDateTime with(TemporalAdjuster adjuster)LocalDateTime with(TemporalField field, long newValue) |
withDayOfMonth | withDayOfMonth(dayOfMonth) | LocalDateTime withDayOfMonth(int dayOfMonth) |
withDayOfYear | withDayOfYear(dayOfYear) | LocalDateTime withDayOfYear(int dayOfYear) |
withHour | withHour(hour) | LocalDateTime withHour(int hour) |
withMinute | withMinute(minute) | LocalDateTime withMinute(int minute) |
withMonth | withMonth(month) | LocalDateTime withMonth(int month) |
withNano | withNano(nanoOfSecond) | LocalDateTime withNano(int nanoOfSecond) |
withSecond | withSecond(second) | LocalDateTime withSecond(int second) |
withYear | withYear(year) | LocalDateTime withYear(int year) |
The methods and fields of Object are inherited.
LocalTime#
class final · extends Object · java.time.LocalTime
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN | LocalTime | constant · static | o.MIN |
MAX | LocalTime | constant · static | o.MAX |
MIDNIGHT | LocalTime | constant · static | o.MIDNIGHT |
NOON | LocalTime | constant · static | o.NOON |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static LocalTime now(Clock clock)static LocalTime now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atDate | atDate(date) | LocalDateTime atDate(LocalDate date) |
atOffset | atOffset(offset) | OffsetTime atOffset(ZoneOffset offset) |
compareTo | compareTo(other) | int compareTo(LocalTime other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static LocalTime from(TemporalAccessor temporal) |
getHour | getHour() | int getHour() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMinute | getMinute() | int getMinute() |
getNano | getNano() | int getNano() |
getSecond | getSecond() | int getSecond() |
isAfter | isAfter(other) | boolean isAfter(LocalTime other) |
isBefore | isBefore(other) | boolean isBefore(LocalTime other) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | LocalTime minus(TemporalAmount amountToSubtract)LocalTime minus(long amountToSubtract, TemporalUnit unit) |
minusHours | minusHours(hoursToSubtract) | LocalTime minusHours(long hoursToSubtract) |
minusMinutes | minusMinutes(minutesToSubtract) | LocalTime minusMinutes(long minutesToSubtract) |
minusNanos | minusNanos(nanosToSubtract) | LocalTime minusNanos(long nanosToSubtract) |
minusSeconds | minusSeconds(secondsToSubtract) | LocalTime minusSeconds(long secondsToSubtract) |
now | now() | static LocalTime now() |
of | of([hour,minute])of([ :hour = v, :minute = v ])of([hour,minute,second])of([ :hour = v, :minute = v, :second = v ])of([hour,minute,second,nanoOfSecond])of([ :hour = v, :minute = v, :second = v, :nanoOfSecond = v ]) | static LocalTime of(int hour, int minute)static LocalTime of(int hour, int minute, int second)static LocalTime of(int hour, int minute, int second, int nanoOfSecond) |
ofInstant | ofInstant(instant,zone) | static LocalTime ofInstant(Instant instant, ZoneId zone) |
ofNanoOfDay | ofNanoOfDay(nanoOfDay) | static LocalTime ofNanoOfDay(long nanoOfDay) |
ofSecondOfDay | ofSecondOfDay(secondOfDay) | static LocalTime ofSecondOfDay(long secondOfDay) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static LocalTime parse(CharSequence text)static LocalTime parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | LocalTime plus(TemporalAmount amountToAdd)LocalTime plus(long amountToAdd, TemporalUnit unit) |
plusHours | plusHours(hoursToAdd) | LocalTime plusHours(long hoursToAdd) |
plusMinutes | plusMinutes(minutesToAdd) | LocalTime plusMinutes(long minutesToAdd) |
plusNanos | plusNanos(nanosToAdd) | LocalTime plusNanos(long nanosToAdd) |
plusSeconds | plusSeconds(secondstoAdd) | LocalTime plusSeconds(long secondstoAdd) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochSecond | toEpochSecond(date,offset) | long toEpochSecond(LocalDate date, ZoneOffset offset) |
toNanoOfDay | toNanoOfDay() | long toNanoOfDay() |
toSecondOfDay | toSecondOfDay() | int toSecondOfDay() |
truncatedTo | truncatedTo(unit) | LocalTime truncatedTo(TemporalUnit unit) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | LocalTime with(TemporalAdjuster adjuster)LocalTime with(TemporalField field, long newValue) |
withHour | withHour(hour) | LocalTime withHour(int hour) |
withMinute | withMinute(minute) | LocalTime withMinute(int minute) |
withNano | withNano(nanoOfSecond) | LocalTime withNano(int nanoOfSecond) |
withSecond | withSecond(second) | LocalTime withSecond(int second) |
The methods and fields of Object are inherited.
Month#
enum · extends Enum · java.time.Month
Implements: TemporalAccessor, TemporalAdjuster
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
JANUARY | Month | constant · static | o.JANUARY |
FEBRUARY | Month | constant · static | o.FEBRUARY |
MARCH | Month | constant · static | o.MARCH |
APRIL | Month | constant · static | o.APRIL |
MAY | Month | constant · static | o.MAY |
JUNE | Month | constant · static | o.JUNE |
JULY | Month | constant · static | o.JULY |
AUGUST | Month | constant · static | o.AUGUST |
SEPTEMBER | Month | constant · static | o.SEPTEMBER |
OCTOBER | Month | constant · static | o.OCTOBER |
NOVEMBER | Month | constant · static | o.NOVEMBER |
DECEMBER | Month | constant · static | o.DECEMBER |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
firstDayOfYear | firstDayOfYear(leapYear) | int firstDayOfYear(boolean leapYear) |
firstMonthOfQuarter | firstMonthOfQuarter() | Month firstMonthOfQuarter() |
from | from(temporal) | static Month from(TemporalAccessor temporal) |
getDisplayName | getDisplayName(style,locale) | String getDisplayName(TextStyle style, Locale locale) |
getLong | getLong(field) | long getLong(TemporalField field) |
getValue | getValue() | int getValue() |
isSupported | isSupported(field) | boolean isSupported(TemporalField field) |
length | length(leapYear) | int length(boolean leapYear) |
maxLength | maxLength() | int maxLength() |
minLength | minLength() | int minLength() |
minus | minus(months) | Month minus(long months) |
of | of(month) | static Month of(int month) |
plus | plus(months) | Month plus(long months) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Month valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Month[] values() |
The methods and fields of Enum are inherited.
MonthDay#
class final · extends Object · java.time.MonthDay
Implements: TemporalAccessor, TemporalAdjuster, Comparable, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static MonthDay now(Clock clock)static MonthDay now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atYear | atYear(year) | LocalDate atYear(int year) |
compareTo | compareTo(other) | int compareTo(MonthDay other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static MonthDay from(TemporalAccessor temporal) |
getDayOfMonth | getDayOfMonth() | int getDayOfMonth() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
isAfter | isAfter(other) | boolean isAfter(MonthDay other) |
isBefore | isBefore(other) | boolean isBefore(MonthDay other) |
isSupported | isSupported(field) | boolean isSupported(TemporalField field) |
isValidYear | isValidYear(year) | boolean isValidYear(int year) |
now | now() | static MonthDay now() |
of | of(month,dayOfMonth) | static MonthDay of(int month, int dayOfMonth)static MonthDay of(Month month, int dayOfMonth) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static MonthDay parse(CharSequence text)static MonthDay parse(CharSequence text, DateTimeFormatter formatter) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
with | with(month) | MonthDay with(Month month) |
withDayOfMonth | withDayOfMonth(dayOfMonth) | MonthDay withDayOfMonth(int dayOfMonth) |
withMonth | withMonth(month) | MonthDay withMonth(int month) |
The methods and fields of Object are inherited.
OffsetDateTime#
class final · extends Object · java.time.OffsetDateTime
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN | OffsetDateTime | constant · static | o.MIN |
MAX | OffsetDateTime | constant · static | o.MAX |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static OffsetDateTime now(Clock clock)static OffsetDateTime now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atZoneSameInstant | atZoneSameInstant(zone) | ZonedDateTime atZoneSameInstant(ZoneId zone) |
atZoneSimilarLocal | atZoneSimilarLocal(zone) | ZonedDateTime atZoneSimilarLocal(ZoneId zone) |
compareTo | compareTo(other) | int compareTo(OffsetDateTime other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static OffsetDateTime from(TemporalAccessor temporal) |
getDayOfMonth | getDayOfMonth() | int getDayOfMonth() |
getDayOfWeek | getDayOfWeek() | DayOfWeek getDayOfWeek() |
getDayOfYear | getDayOfYear() | int getDayOfYear() |
getHour | getHour() | int getHour() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMinute | getMinute() | int getMinute() |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
getNano | getNano() | int getNano() |
getOffset | getOffset() | ZoneOffset getOffset() |
getSecond | getSecond() | int getSecond() |
getYear | getYear() | int getYear() |
isAfter | isAfter(other) | boolean isAfter(OffsetDateTime other) |
isBefore | isBefore(other) | boolean isBefore(OffsetDateTime other) |
isEqual | isEqual(other) | boolean isEqual(OffsetDateTime other) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | OffsetDateTime minus(TemporalAmount amountToSubtract)OffsetDateTime minus(long amountToSubtract, TemporalUnit unit) |
minusDays | minusDays(days) | OffsetDateTime minusDays(long days) |
minusHours | minusHours(hours) | OffsetDateTime minusHours(long hours) |
minusMinutes | minusMinutes(minutes) | OffsetDateTime minusMinutes(long minutes) |
minusMonths | minusMonths(months) | OffsetDateTime minusMonths(long months) |
minusNanos | minusNanos(nanos) | OffsetDateTime minusNanos(long nanos) |
minusSeconds | minusSeconds(seconds) | OffsetDateTime minusSeconds(long seconds) |
minusWeeks | minusWeeks(weeks) | OffsetDateTime minusWeeks(long weeks) |
minusYears | minusYears(years) | OffsetDateTime minusYears(long years) |
now | now() | static OffsetDateTime now() |
of | of([dateTime,offset])of([ :dateTime = v, :offset = v ])of([date,time,offset])of([ :date = v, :time = v, :offset = v ])of([year,month,dayOfMonth,hour,minute,second,nanoOfSecond,offset])of([ :year = v, :month = v, :dayOfMonth = v, :hour = v, :minute = v, :second = v, :nanoOfSecond = v, :offset = v ]) | static OffsetDateTime of(LocalDateTime dateTime, ZoneOffset offset)static OffsetDateTime of(LocalDate date, LocalTime time, ZoneOffset offset)static OffsetDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) |
ofInstant | ofInstant(instant,zone) | static OffsetDateTime ofInstant(Instant instant, ZoneId zone) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static OffsetDateTime parse(CharSequence text)static OffsetDateTime parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | OffsetDateTime plus(TemporalAmount amountToAdd)OffsetDateTime plus(long amountToAdd, TemporalUnit unit) |
plusDays | plusDays(days) | OffsetDateTime plusDays(long days) |
plusHours | plusHours(hours) | OffsetDateTime plusHours(long hours) |
plusMinutes | plusMinutes(minutes) | OffsetDateTime plusMinutes(long minutes) |
plusMonths | plusMonths(months) | OffsetDateTime plusMonths(long months) |
plusNanos | plusNanos(nanos) | OffsetDateTime plusNanos(long nanos) |
plusSeconds | plusSeconds(seconds) | OffsetDateTime plusSeconds(long seconds) |
plusWeeks | plusWeeks(weeks) | OffsetDateTime plusWeeks(long weeks) |
plusYears | plusYears(years) | OffsetDateTime plusYears(long years) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
timeLineOrder | timeLineOrder() | static Comparator timeLineOrder() |
toEpochSecond | toEpochSecond() | long toEpochSecond() |
toInstant | toInstant() | Instant toInstant() |
toLocalDate | toLocalDate() | LocalDate toLocalDate() |
toLocalDateTime | toLocalDateTime() | LocalDateTime toLocalDateTime() |
toLocalTime | toLocalTime() | LocalTime toLocalTime() |
toOffsetTime | toOffsetTime() | OffsetTime toOffsetTime() |
toZonedDateTime | toZonedDateTime() | ZonedDateTime toZonedDateTime() |
truncatedTo | truncatedTo(unit) | OffsetDateTime truncatedTo(TemporalUnit unit) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | OffsetDateTime with(TemporalAdjuster adjuster)OffsetDateTime with(TemporalField field, long newValue) |
withDayOfMonth | withDayOfMonth(dayOfMonth) | OffsetDateTime withDayOfMonth(int dayOfMonth) |
withDayOfYear | withDayOfYear(dayOfYear) | OffsetDateTime withDayOfYear(int dayOfYear) |
withHour | withHour(hour) | OffsetDateTime withHour(int hour) |
withMinute | withMinute(minute) | OffsetDateTime withMinute(int minute) |
withMonth | withMonth(month) | OffsetDateTime withMonth(int month) |
withNano | withNano(nanoOfSecond) | OffsetDateTime withNano(int nanoOfSecond) |
withOffsetSameInstant | withOffsetSameInstant(offset) | OffsetDateTime withOffsetSameInstant(ZoneOffset offset) |
withOffsetSameLocal | withOffsetSameLocal(offset) | OffsetDateTime withOffsetSameLocal(ZoneOffset offset) |
withSecond | withSecond(second) | OffsetDateTime withSecond(int second) |
withYear | withYear(year) | OffsetDateTime withYear(int year) |
The methods and fields of Object are inherited.
OffsetTime#
class final · extends Object · java.time.OffsetTime
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN | OffsetTime | constant · static | o.MIN |
MAX | OffsetTime | constant · static | o.MAX |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static OffsetTime now(Clock clock)static OffsetTime now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atDate | atDate(date) | OffsetDateTime atDate(LocalDate date) |
compareTo | compareTo(other) | int compareTo(OffsetTime other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static OffsetTime from(TemporalAccessor temporal) |
getHour | getHour() | int getHour() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMinute | getMinute() | int getMinute() |
getNano | getNano() | int getNano() |
getOffset | getOffset() | ZoneOffset getOffset() |
getSecond | getSecond() | int getSecond() |
isAfter | isAfter(other) | boolean isAfter(OffsetTime other) |
isBefore | isBefore(other) | boolean isBefore(OffsetTime other) |
isEqual | isEqual(other) | boolean isEqual(OffsetTime other) |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | OffsetTime minus(TemporalAmount amountToSubtract)OffsetTime minus(long amountToSubtract, TemporalUnit unit) |
minusHours | minusHours(hours) | OffsetTime minusHours(long hours) |
minusMinutes | minusMinutes(minutes) | OffsetTime minusMinutes(long minutes) |
minusNanos | minusNanos(nanos) | OffsetTime minusNanos(long nanos) |
minusSeconds | minusSeconds(seconds) | OffsetTime minusSeconds(long seconds) |
now | now() | static OffsetTime now() |
of | of([time,offset])of([ :time = v, :offset = v ])of([hour,minute,second,nanoOfSecond,offset])of([ :hour = v, :minute = v, :second = v, :nanoOfSecond = v, :offset = v ]) | static OffsetTime of(LocalTime time, ZoneOffset offset)static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) |
ofInstant | ofInstant(instant,zone) | static OffsetTime ofInstant(Instant instant, ZoneId zone) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static OffsetTime parse(CharSequence text)static OffsetTime parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | OffsetTime plus(TemporalAmount amountToAdd)OffsetTime plus(long amountToAdd, TemporalUnit unit) |
plusHours | plusHours(hours) | OffsetTime plusHours(long hours) |
plusMinutes | plusMinutes(minutes) | OffsetTime plusMinutes(long minutes) |
plusNanos | plusNanos(nanos) | OffsetTime plusNanos(long nanos) |
plusSeconds | plusSeconds(seconds) | OffsetTime plusSeconds(long seconds) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochSecond | toEpochSecond(date) | long toEpochSecond(LocalDate date) |
toLocalTime | toLocalTime() | LocalTime toLocalTime() |
truncatedTo | truncatedTo(unit) | OffsetTime truncatedTo(TemporalUnit unit) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | OffsetTime with(TemporalAdjuster adjuster)OffsetTime with(TemporalField field, long newValue) |
withHour | withHour(hour) | OffsetTime withHour(int hour) |
withMinute | withMinute(minute) | OffsetTime withMinute(int minute) |
withNano | withNano(nanoOfSecond) | OffsetTime withNano(int nanoOfSecond) |
withOffsetSameInstant | withOffsetSameInstant(offset) | OffsetTime withOffsetSameInstant(ZoneOffset offset) |
withOffsetSameLocal | withOffsetSameLocal(offset) | OffsetTime withOffsetSameLocal(ZoneOffset offset) |
withSecond | withSecond(second) | OffsetTime withSecond(int second) |
The methods and fields of Object are inherited.
Period#
class final · extends Object · java.time.Period
Implements: ChronoPeriod, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ZERO | Period | constant · static | o.ZERO |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(unit) | long get(TemporalUnit unit) |
addTo | addTo(temporal) | Temporal addTo(Temporal temporal) |
between | between(startDateInclusive,endDateExclusive) | static Period between(LocalDate startDateInclusive, LocalDate endDateExclusive) |
from | from(amount) | static Period from(TemporalAmount amount) |
getChronology | getChronology() | IsoChronology getChronology() |
getDays | getDays() | int getDays() |
getMonths | getMonths() | int getMonths() |
getUnits | getUnits() | List getUnits() |
getYears | getYears() | int getYears() |
isNegative | isNegative() | boolean isNegative() |
isZero | isZero() | boolean isZero() |
minus | minus(amountToSubtract) | Period minus(TemporalAmount amountToSubtract) |
minusDays | minusDays(daysToSubtract) | Period minusDays(long daysToSubtract) |
minusMonths | minusMonths(monthsToSubtract) | Period minusMonths(long monthsToSubtract) |
minusYears | minusYears(yearsToSubtract) | Period minusYears(long yearsToSubtract) |
multipliedBy | multipliedBy(scalar) | Period multipliedBy(int scalar) |
negated | negated() | Period negated() |
normalized | normalized() | Period normalized() |
of | of(years,months,days) | static Period of(int years, int months, int days) |
ofDays | ofDays(days) | static Period ofDays(int days) |
ofMonths | ofMonths(months) | static Period ofMonths(int months) |
ofWeeks | ofWeeks(weeks) | static Period ofWeeks(int weeks) |
ofYears | ofYears(years) | static Period ofYears(int years) |
parse | parse(text) | static Period parse(CharSequence text) |
plus | plus(amountToAdd) | Period plus(TemporalAmount amountToAdd) |
plusDays | plusDays(daysToAdd) | Period plusDays(long daysToAdd) |
plusMonths | plusMonths(monthsToAdd) | Period plusMonths(long monthsToAdd) |
plusYears | plusYears(yearsToAdd) | Period plusYears(long yearsToAdd) |
subtractFrom | subtractFrom(temporal) | Temporal subtractFrom(Temporal temporal) |
toTotalMonths | toTotalMonths() | long toTotalMonths() |
withDays | withDays(days) | Period withDays(int days) |
withMonths | withMonths(months) | Period withMonths(int months) |
withYears | withYears(years) | Period withYears(int years) |
The methods and fields of Object are inherited.
Year#
class final · extends Object · java.time.Year
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MIN_VALUE | int | constant · static | o.MIN_VALUE |
MAX_VALUE | int | constant · static | o.MAX_VALUE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@isLeap | @isLeap(year) | static boolean isLeap(long year) |
@now | @now(clock) | static Year now(Clock clock)static Year now(ZoneId zone) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atDay | atDay(dayOfYear) | LocalDate atDay(int dayOfYear) |
atMonth | atMonth(month) | YearMonth atMonth(int month)YearMonth atMonth(Month month) |
atMonthDay | atMonthDay(monthDay) | LocalDate atMonthDay(MonthDay monthDay) |
compareTo | compareTo(other) | int compareTo(Year other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static Year from(TemporalAccessor temporal) |
getLong | getLong(field) | long getLong(TemporalField field) |
getValue | getValue() | int getValue() |
isAfter | isAfter(other) | boolean isAfter(Year other) |
isBefore | isBefore(other) | boolean isBefore(Year other) |
isLeap | isLeap() | boolean isLeap() |
isSupported | isSupported(field) | boolean isSupported(TemporalField field)boolean isSupported(TemporalUnit unit) |
isValidMonthDay | isValidMonthDay(monthDay) | boolean isValidMonthDay(MonthDay monthDay) |
length | length() | int length() |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | Year minus(TemporalAmount amountToSubtract)Year minus(long amountToSubtract, TemporalUnit unit) |
minusYears | minusYears(yearsToSubtract) | Year minusYears(long yearsToSubtract) |
now | now() | static Year now() |
of | of(isoYear) | static Year of(int isoYear) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static Year parse(CharSequence text)static Year parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | Year plus(TemporalAmount amountToAdd)Year plus(long amountToAdd, TemporalUnit unit) |
plusYears | plusYears(yearsToAdd) | Year plusYears(long yearsToAdd) |
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 ]) | Year with(TemporalAdjuster adjuster)Year with(TemporalField field, long newValue) |
The methods and fields of Object are inherited.
YearMonth#
class final · extends Object · java.time.YearMonth
Implements: Temporal, TemporalAdjuster, Comparable, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(zone) | static YearMonth now(ZoneId zone)static YearMonth now(Clock clock) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
atDay | atDay(dayOfMonth) | LocalDate atDay(int dayOfMonth) |
atEndOfMonth | atEndOfMonth() | LocalDate atEndOfMonth() |
compareTo | compareTo(other) | int compareTo(YearMonth other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static YearMonth from(TemporalAccessor temporal) |
getLong | getLong(field) | long getLong(TemporalField field) |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
getYear | getYear() | int getYear() |
isAfter | isAfter(other) | boolean isAfter(YearMonth other) |
isBefore | isBefore(other) | boolean isBefore(YearMonth other) |
isLeapYear | isLeapYear() | boolean isLeapYear() |
isSupported | isSupported(unit) | boolean isSupported(TemporalUnit unit)boolean isSupported(TemporalField field) |
isValidDay | isValidDay(dayOfMonth) | boolean isValidDay(int dayOfMonth) |
lengthOfMonth | lengthOfMonth() | int lengthOfMonth() |
lengthOfYear | lengthOfYear() | int lengthOfYear() |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | YearMonth minus(TemporalAmount amountToSubtract)YearMonth minus(long amountToSubtract, TemporalUnit unit) |
minusMonths | minusMonths(monthsToSubtract) | YearMonth minusMonths(long monthsToSubtract) |
minusYears | minusYears(yearsToSubtract) | YearMonth minusYears(long yearsToSubtract) |
now | now() | static YearMonth now() |
of | of(year,month) | static YearMonth of(int year, Month month)static YearMonth of(int year, int month) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static YearMonth parse(CharSequence text)static YearMonth parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | YearMonth plus(TemporalAmount amountToAdd)YearMonth plus(long amountToAdd, TemporalUnit unit) |
plusMonths | plusMonths(monthsToAdd) | YearMonth plusMonths(long monthsToAdd) |
plusYears | plusYears(yearsToAdd) | YearMonth plusYears(long yearsToAdd) |
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 ]) | YearMonth with(TemporalAdjuster adjuster)YearMonth with(TemporalField field, long newValue) |
withMonth | withMonth(month) | YearMonth withMonth(int month) |
withYear | withYear(year) | YearMonth withYear(int year) |
The methods and fields of Object are inherited.
ZonedDateTime#
class final · extends Object · java.time.ZonedDateTime
Implements: Temporal, ChronoZonedDateTime, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
@now | @now(clock) | static ZonedDateTime now(Clock clock)static ZonedDateTime now(ZoneId zone) |
compareTo | compareTo(other) | int compareTo(ChronoZonedDateTime other) |
format | format(formatter) | String format(DateTimeFormatter formatter) |
from | from(temporal) | static ZonedDateTime from(TemporalAccessor temporal) |
getChronology | getChronology() | Chronology getChronology() |
getDayOfMonth | getDayOfMonth() | int getDayOfMonth() |
getDayOfWeek | getDayOfWeek() | DayOfWeek getDayOfWeek() |
getDayOfYear | getDayOfYear() | int getDayOfYear() |
getHour | getHour() | int getHour() |
getLong | getLong(field) | long getLong(TemporalField field) |
getMinute | getMinute() | int getMinute() |
getMonth | getMonth() | Month getMonth() |
getMonthValue | getMonthValue() | int getMonthValue() |
getNano | getNano() | int getNano() |
getOffset | getOffset() | ZoneOffset getOffset() |
getSecond | getSecond() | int getSecond() |
getYear | getYear() | int getYear() |
getZone | getZone() | ZoneId getZone() |
isAfter | isAfter(other) | boolean isAfter(ChronoZonedDateTime other) |
isBefore | isBefore(other) | boolean isBefore(ChronoZonedDateTime other) |
isEqual | isEqual(other) | boolean isEqual(ChronoZonedDateTime other) |
isSupported | isSupported(field) | boolean isSupported(TemporalField field)boolean isSupported(TemporalUnit unit) |
minus | minus(amountToSubtract)minus([amountToSubtract,unit])minus([ :amountToSubtract = v, :unit = v ]) | ZonedDateTime minus(TemporalAmount amountToSubtract)ZonedDateTime minus(long amountToSubtract, TemporalUnit unit) |
minusDays | minusDays(days) | ZonedDateTime minusDays(long days) |
minusHours | minusHours(hours) | ZonedDateTime minusHours(long hours) |
minusMinutes | minusMinutes(minutes) | ZonedDateTime minusMinutes(long minutes) |
minusMonths | minusMonths(months) | ZonedDateTime minusMonths(long months) |
minusNanos | minusNanos(nanos) | ZonedDateTime minusNanos(long nanos) |
minusSeconds | minusSeconds(seconds) | ZonedDateTime minusSeconds(long seconds) |
minusWeeks | minusWeeks(weeks) | ZonedDateTime minusWeeks(long weeks) |
minusYears | minusYears(years) | ZonedDateTime minusYears(long years) |
now | now() | static ZonedDateTime now() |
of | of([localDateTime,zone])of([ :localDateTime = v, :zone = v ])of([date,time,zone])of([ :date = v, :time = v, :zone = v ])of([year,month,dayOfMonth,hour,minute,second,nanoOfSecond,zone])of([ :year = v, :month = v, :dayOfMonth = v, :hour = v, :minute = v, :second = v, :nanoOfSecond = v, :zone = v ]) | static ZonedDateTime of(LocalDateTime localDateTime, ZoneId zone)static ZonedDateTime of(LocalDate date, LocalTime time, ZoneId zone)static ZonedDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) |
ofInstant | ofInstant([instant,zone])ofInstant([ :instant = v, :zone = v ])ofInstant([localDateTime,offset,zone])ofInstant([ :localDateTime = v, :offset = v, :zone = v ]) | static ZonedDateTime ofInstant(Instant instant, ZoneId zone)static ZonedDateTime ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) |
ofLocal | ofLocal(localDateTime,zone,preferredOffset) | static ZonedDateTime ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset) |
ofStrict | ofStrict(localDateTime,offset,zone) | static ZonedDateTime ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) |
parse | parse(text)parse([text,formatter])parse([ :text = v, :formatter = v ]) | static ZonedDateTime parse(CharSequence text)static ZonedDateTime parse(CharSequence text, DateTimeFormatter formatter) |
plus | plus(amountToAdd)plus([amountToAdd,unit])plus([ :amountToAdd = v, :unit = v ]) | ZonedDateTime plus(TemporalAmount amountToAdd)ZonedDateTime plus(long amountToAdd, TemporalUnit unit) |
plusDays | plusDays(days) | ZonedDateTime plusDays(long days) |
plusHours | plusHours(hours) | ZonedDateTime plusHours(long hours) |
plusMinutes | plusMinutes(minutes) | ZonedDateTime plusMinutes(long minutes) |
plusMonths | plusMonths(months) | ZonedDateTime plusMonths(long months) |
plusNanos | plusNanos(nanos) | ZonedDateTime plusNanos(long nanos) |
plusSeconds | plusSeconds(seconds) | ZonedDateTime plusSeconds(long seconds) |
plusWeeks | plusWeeks(weeks) | ZonedDateTime plusWeeks(long weeks) |
plusYears | plusYears(years) | ZonedDateTime plusYears(long years) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
toEpochSecond | toEpochSecond() | long toEpochSecond() |
toInstant | toInstant() | Instant toInstant() |
toLocalDate | toLocalDate() | LocalDate toLocalDate() |
toLocalDateTime | toLocalDateTime() | LocalDateTime toLocalDateTime() |
toLocalTime | toLocalTime() | LocalTime toLocalTime() |
toOffsetDateTime | toOffsetDateTime() | OffsetDateTime toOffsetDateTime() |
truncatedTo | truncatedTo(unit) | ZonedDateTime truncatedTo(TemporalUnit unit) |
until | until(endExclusive,unit) | long until(Temporal endExclusive, TemporalUnit unit) |
with | with(adjuster)with([field,newValue])with([ :field = v, :newValue = v ]) | ZonedDateTime with(TemporalAdjuster adjuster)ZonedDateTime with(TemporalField field, long newValue) |
withDayOfMonth | withDayOfMonth(dayOfMonth) | ZonedDateTime withDayOfMonth(int dayOfMonth) |
withDayOfYear | withDayOfYear(dayOfYear) | ZonedDateTime withDayOfYear(int dayOfYear) |
withEarlierOffsetAtOverlap | withEarlierOffsetAtOverlap() | ZonedDateTime withEarlierOffsetAtOverlap() |
withFixedOffsetZone | withFixedOffsetZone() | ZonedDateTime withFixedOffsetZone() |
withHour | withHour(hour) | ZonedDateTime withHour(int hour) |
withLaterOffsetAtOverlap | withLaterOffsetAtOverlap() | ZonedDateTime withLaterOffsetAtOverlap() |
withMinute | withMinute(minute) | ZonedDateTime withMinute(int minute) |
withMonth | withMonth(month) | ZonedDateTime withMonth(int month) |
withNano | withNano(nanoOfSecond) | ZonedDateTime withNano(int nanoOfSecond) |
withSecond | withSecond(second) | ZonedDateTime withSecond(int second) |
withYear | withYear(year) | ZonedDateTime withYear(int year) |
withZoneSameInstant | withZoneSameInstant(zone) | ZonedDateTime withZoneSameInstant(ZoneId zone) |
withZoneSameLocal | withZoneSameLocal(zone) | ZonedDateTime withZoneSameLocal(ZoneId zone) |
The methods and fields of Object are inherited.
ZoneId#
abstract · extends Object · java.time.ZoneId
Implements: Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SHORT_IDS | Map | constant · static | o.SHORT_IDS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
from | from(temporal) | static ZoneId from(TemporalAccessor temporal) |
getAvailableZoneIds | getAvailableZoneIds() | static Set getAvailableZoneIds() |
getDisplayName | getDisplayName(style,locale) | String getDisplayName(TextStyle style, Locale locale) |
getId | getId() | String getId() |
getRules | getRules() | ZoneRules getRules() |
normalized | normalized() | ZoneId normalized() |
of | of(zoneId)of([zoneId,aliasMap])of([ :zoneId = v, :aliasMap = v ]) | static ZoneId of(String zoneId)static ZoneId of(String zoneId, Map aliasMap) |
ofOffset | ofOffset(prefix,offset) | static ZoneId ofOffset(String prefix, ZoneOffset offset) |
systemDefault | systemDefault() | static ZoneId systemDefault() |
The methods and fields of Object are inherited.
ZoneOffset#
class final · extends ZoneId · java.time.ZoneOffset
Implements: TemporalAccessor, TemporalAdjuster, Comparable, Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UTC | ZoneOffset | constant · static | o.UTC |
MIN | ZoneOffset | constant · static | o.MIN |
MAX | ZoneOffset | constant · static | o.MAX |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(field) | int get(TemporalField field) |
adjustInto | adjustInto(temporal) | Temporal adjustInto(Temporal temporal) |
compareTo | compareTo(other) | int compareTo(ZoneOffset other) |
getLong | getLong(field) | long getLong(TemporalField field) |
getTotalSeconds | getTotalSeconds() | int getTotalSeconds() |
isSupported | isSupported(field) | boolean isSupported(TemporalField field) |
ofHours | ofHours(hours) | static ZoneOffset ofHours(int hours) |
ofHoursMinutes | ofHoursMinutes(hours,minutes) | static ZoneOffset ofHoursMinutes(int hours, int minutes) |
ofHoursMinutesSeconds | ofHoursMinutesSeconds(hours,minutes,seconds) | static ZoneOffset ofHoursMinutesSeconds(int hours, int minutes, int seconds) |
ofTotalSeconds | ofTotalSeconds(totalSeconds) | static ZoneOffset ofTotalSeconds(int totalSeconds) |
query | query(query) | Object query(TemporalQuery query) |
range | range(field) | ValueRange range(TemporalField field) |
The methods and fields of ZoneId are inherited.