B C D F G I L M N O P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- between(Period, YearMonth, YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Obtains a Period consisting of the number of years and months between two
YearMonth
instances. - between(Period, Year, Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Obtains a Period consisting of the number of years between two
Year
instances.
C
- clearTime(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
with the time portion cleared. - clearTime(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
with the time portion cleared. - clearTime(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
ZonedDateTime
with the time portion cleared.
D
- DateTimeExtensions - Class in org.apache.groovy.datetime.extensions
-
This class defines new Groovy methods which appear on normal JDK Date/Time API (java.time) classes inside the Groovy environment.
- DateTimeStaticExtensions - Class in org.apache.groovy.datetime.extensions
-
This class defines new static extension methods which appear on normal JDK Date/Time API (java.time) classes inside the Groovy environment.
- div(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the division operator; equivalent to calling the
Duration.dividedBy(long)
method. - downto(Temporal, Temporal, Closure) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Iterates from this to the
to
Temporal
, inclusive, decrementing by one unit each iteration, calling the closure once per iteration. - downto(Temporal, Temporal, TemporalUnit, Closure) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Iterates from this to the
to
Temporal
, inclusive, decrementing by oneunit
each iteration, calling the closure once per iteration.
F
- format(LocalDate, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date with the provided
DateTimeFormatter
pattern. - format(LocalDate, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date in the provided, localized
FormatStyle
. - format(LocalDateTime, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the provided
DateTimeFormatter
pattern. - format(LocalDateTime, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time in the provided, localized
FormatStyle
. - format(LocalTime, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the provided
DateTimeFormatter
pattern. - format(LocalTime, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time in the provided, localized
FormatStyle
. - format(OffsetDateTime, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the provided
DateTimeFormatter
pattern. - format(OffsetDateTime, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time in the provided, localized
FormatStyle
. - format(OffsetTime, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the provided
DateTimeFormatter
pattern. - format(OffsetTime, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time in the provided, localized
FormatStyle
. - format(ZonedDateTime, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the provided
DateTimeFormatter
pattern. - format(ZonedDateTime, FormatStyle) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time in the provided, localized
FormatStyle
.
G
- getAt(TemporalAccessor, TemporalField) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the getAt operator; equivalent to calling the
TemporalAccessor.getLong(java.time.temporal.TemporalField)
method. - getAt(TemporalAmount, TemporalUnit) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the getAt operator; equivalent to calling the
TemporalAmount.get(TemporalUnit)
method. - getAt(ZoneOffset, TemporalField) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the getAt operator; equivalent to calling the
ZoneOffset.getLong(java.time.temporal.TemporalField)
method. - getDateString(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date with the
DateTimeFormatter.ISO_LOCAL_DATE
formatter. - getDateString(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATE
formatter. - getDateString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_DATE
formatter. - getDateString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATE
formatter and appends the zone's short name, e.g. - getDateTimeString(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATE_TIME
formatter. - getDateTimeString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_DATE_TIME
formatter. - getDateTimeString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATE_TIME
formatter and appends the zone's short name, e.g. - getEra(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Equivalent to calling the
Year.get(java.time.temporal.TemporalField)
method with aChronoField.ERA
argument. - getFullName(ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the name of this zone formatted according to the
TextStyle.FULL
text style. - getFullName(ZoneId, Locale) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the name of this zone formatted according to the
TextStyle.FULL
text style for the providedLocale
. - getHours(ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the hours component of this offset.
- getMinutes(ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the minutes component of this offset.
- getOffset(ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZoneOffset
for this zone as of now. - getOffset(ZoneId, Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZoneOffset
for this zone as of the providedInstant
. - getSeconds(ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the seconds component of this offset.
- getShortName(ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the name of this zone formatted according to the
TextStyle.SHORT
text style. - getShortName(ZoneId, Locale) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the name of this zone formatted according to the
TextStyle.SHORT
text style for the providedLocale
. - getTimeString(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_TIME
formatter. - getTimeString(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the
DateTimeFormatter.ISO_LOCAL_TIME
formatter. - getTimeString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_TIME
formatter. - getTimeString(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the
DateTimeFormatter.ISO_OFFSET_TIME
formatter. - getTimeString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_TIME
formatter and appends the zone's short name, e.g. - getYearOfEra(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Equivalent to calling the
Year.get(java.time.temporal.TemporalField)
method with aChronoField.YEAR_OF_ERA
argument. - getZoneId(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the Time Zone of the Calendar as a java.time.ZoneId.
- getZoneId(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the Time Zone of the Date as a
ZoneId
. - getZoneOffset(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the Time Zone offset of the Calendar as a
ZoneOffset
. - getZoneOffset(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the Time Zone offset of the Date as a
ZoneOffset
, which will typically be system's default offset.
I
- isNonnegative(ChronoPeriod) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this period is zero or positive.
- isNonnegative(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this duration is zero or positive.
- isNonpositive(ChronoPeriod) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this period is zero or negative.
- isNonpositive(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this duration is zero or negative.
- isPositive(ChronoPeriod) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this period is positive, excluding zero.
- isPositive(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns true if this duration is positive, excluding zero.
- isWeekday(DayOfWeek) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns
true
if the DayOfWeek is a weekday. - isWeekend(DayOfWeek) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns
true
if this day of the week is a weekend day (Saturday or Sunday).
L
- leftShift(LocalDate, LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
from this date and the providedLocalTime
. - leftShift(LocalDate, OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
OffsetDateTime
from this date and the providedOffsetTime
. - leftShift(LocalDateTime, ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
OffsetDateTime
of this date/time and the providedZoneId
. - leftShift(LocalDateTime, ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
of this date/time and the providedZoneOffset
. - leftShift(LocalTime, LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
of this time and the providedLocalDate
. - leftShift(LocalTime, ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTime
of this time and the providedZoneOffset
. - leftShift(MonthDay, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
of this month/day and the provided year. - leftShift(MonthDay, Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- leftShift(Month, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Creates a
MonthDay
at the provided day of the month. - leftShift(Month, Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- leftShift(OffsetTime, LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
of this time and the providedLocalDate
. - leftShift(YearMonth, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
of this year/month and the given day of the month. - leftShift(Year, Month) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- leftShift(Year, MonthDay) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- leftShift(ZoneId, LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTime
of this zone and the givenLocalDateTime
. - leftShift(ZoneOffset, LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
of this offset and the providedLocalDateTime
. - leftShift(ZoneOffset, LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
of this offset and the providedLocalTime
.
M
- minus(DayOfWeek, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
DayOfWeek
that isdays
many days before this day of the week. - minus(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Duration
that isseconds
seconds shorter that this duration. - minus(Instant, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instant
that isseconds
seconds before this instant. - minus(LocalDate, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
that isdays
days before this date. - minus(LocalDate, LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Calculates the number of days between two dates
- minus(LocalDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
that isseconds
seconds before this date/time. - minus(LocalTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTime
that isseconds
seconds before this time. - minus(Month, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
Month
that ismonths
months before this month. - minus(OffsetDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
that isseconds
seconds before this date/time. - minus(OffsetTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTime
that isseconds
seconds before this time. - minus(Period, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Period
that isdays
days shorter than this period. - minus(YearMonth, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonth
that ismonths
months before this year/month. - minus(Year, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Year
that isyears
years before this year. - minus(ZonedDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTime
that isseconds
seconds before this date/time. - multiply(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the multiplication operator; equivalent to calling the
Duration.multipliedBy(long)
method. - multiply(Period, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the multiply operator; equivalent to calling the
Period.multipliedBy(int)
method.
N
- negative(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the unary minus operator; equivalent to calling the
Duration.negated()
method. - negative(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the unary minus operator; equivalent to calling the
Period.negated()
method. - next(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Duration
that is one second longer than this duration. - next(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instant
that is one second after this instant. - next(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
one day after this date. - next(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
that is one second after this date/time. - next(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTime
that is one second after this time. - next(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
one second after this date/time. - next(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTime
that is one second after this time. - next(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Period
that is one day longer than this period. - next(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Year
after this year. - next(YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonth
that is the month after this year/month. - next(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTime
that is one second after this date/time.
O
- org.apache.groovy.datetime.extensions - package org.apache.groovy.datetime.extensions
P
- parse(LocalDate, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
LocalDate
using the provided pattern. - parse(LocalDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
LocalDateTime
using the provided pattern. - parse(LocalTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
LocalTime
using the provided pattern. - parse(MonthDay, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
MonthDay
using the provided pattern. - parse(OffsetDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into an
OffsetDateTime
using the provided pattern. - parse(OffsetTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into an
OffsetTime
using the provided pattern. - parse(YearMonth, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
YearMonth
using the provided pattern. - parse(Year, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
Year
using the provided pattern. - parse(ZonedDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
ZonedDateTime
using the provided pattern. - plus(DayOfWeek, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
DayOfWeek
that isdays
many days after this day of the week. - plus(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Duration
that isseconds
seconds longer than this duration. - plus(Instant, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instant
that isseconds
seconds after this instant. - plus(LocalDate, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
that isdays
days after this date. - plus(LocalDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
that isseconds
seconds after this date/time. - plus(LocalTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTime
that isseconds
seconds after this time. - plus(Month, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
Month
that ismonths
months after this month. - plus(OffsetDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
that isseconds
seconds after this date/time. - plus(OffsetTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTime
that isseconds
seconds after this time. - plus(Period, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Period
that isdays
days longer than this period. - plus(YearMonth, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonth
that ismonths
months after this year/month. - plus(Year, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Year
that isyears
years after this year. - plus(ZonedDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTime
that isseconds
seconds after this date/time. - positive(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the unary plus operator; equivalent to calling the
Duration.abs()
method. - positive(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the unary plus operator; returns a
Period
with all unit values positive. - previous(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Duration
that is one second shorter than this duration. - previous(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instant
that one second before this instant. - previous(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDate
one day before this date. - previous(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTime
that is one second before this date/time. - previous(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTime
that is one second before this time. - previous(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTime
one second before this date/time. - previous(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTime
that is one second before this time. - previous(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Period
that is one day shorter than this period. - previous(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Year
before this year. - previous(YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonth
that is the month before this year/month. - previous(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTime
that is one second before this date/time.
R
- rightShift(LocalDate, LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- rightShift(Temporal, Temporal) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- rightShift(YearMonth, YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
- rightShift(Year, Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
S
- systemDefault(ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Returns the
ZoneOffset
currently associated with the system defaultZoneId
.
T
- toCalendar(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent
Calendar
in the GMT time zone, truncated to milliseconds. - toCalendar(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an equivalent instance of
Calendar
. - toCalendar(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Calendar
. - toCalendar(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Calendar
. - toCalendar(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Calendar
. - toCalendar(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Calendar
. - toCalendar(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Calendar
. - toDate(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent
Date
according the number of milliseconds since the epoch, adjusted into the system default time zone. - toDate(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an equivalent instance of
Date
. - toDate(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Date
. - toDate(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Date
. - toDate(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Date
. - toDate(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Date
. - toDate(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent instance of
Date
. - toDayOfWeek(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
DayOfWeek
. - toDayOfWeek(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
DayOfWeek
. - toInstant(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Convenience method for converting a Calendar to a corresponding
Instant
. - toLocalDate(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
LocalDate
. - toLocalDateTime(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
LocalDateTime
. - toLocalDateTime(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
LocalDateTime
. - toLocalTime(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
LocalTime
. - toLocalTime(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
LocalTime
. - toMonth(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
Month
. - toMonth(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
Month
. - toMonthDay(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
MonthDay
. - toMonthDay(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
MonthDay
. - toOffsetDateTime(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
OffsetDateTime
. - toOffsetDateTime(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
OffsetDateTime
. - toOffsetTime(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
OffsetTime
. - toOffsetTime(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
OffsetTime
. - toTimeZone(ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
TimeZone
equivalent to this zone. - toTimeZone(ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent
TimeZone
. - toYear(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
Year
. - toYear(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
Year
. - toYearMonth(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
YearMonth
. - toYearMonth(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
YearMonth
. - toZonedDateTime(Calendar) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Calendar to a corresponding
ZonedDateTime
. - toZonedDateTime(Date) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the Date to a corresponding
ZonedDateTime
. - toZoneOffset(TimeZone) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts the TimeZone to a corresponding
ZoneOffset
. - toZoneOffset(TimeZone, Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Converts this TimeZone to a corresponding
ZoneOffset
.
U
- upto(Temporal, Temporal, Closure) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Iterates from this to the
to
Temporal
, inclusive, incrementing by one unit each iteration, calling the closure once per iteration. - upto(Temporal, Temporal, TemporalUnit, Closure) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Iterates from this to the
to
Temporal
, inclusive, incrementing by oneunit
each iteration, calling the closure once per iteration.
All Classes All Packages