Index
All Classes and Interfaces|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
YearMonthinstances. - 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
Yearinstances.
C
- clearTime(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTimewith the time portion cleared. - clearTime(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimewith the time portion cleared. - clearTime(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
ZonedDateTimewith 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
toTemporal, 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
toTemporal, inclusive, decrementing by oneuniteach 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
DateTimeFormatterpattern. - 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
DateTimeFormatterpattern. - 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
DateTimeFormatterpattern. - 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
DateTimeFormatterpattern. - 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
DateTimeFormatterpattern. - 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
DateTimeFormatterpattern. - 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, Iterable<TemporalField>) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Supports the getAt operator for an iterable; equivalent to collecting the
TemporalAccessor.getLong(java.time.temporal.TemporalField)method for each field in the supplied iterable. - 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_DATEformatter. - getDateString(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATEformatter. - getDateString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_DATEformatter. - getDateString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATEformatter 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_TIMEformatter. - getDateTimeString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_DATE_TIMEformatter. - getDateTimeString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_DATE_TIMEformatter 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.ERAargument. - getFullName(ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the name of this zone formatted according to the
TextStyle.FULLtext 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.FULLtext 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
ZoneOffsetfor this zone as of now. - getOffset(ZoneId, Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZoneOffsetfor 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.SHORTtext 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.SHORTtext 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_TIMEformatter. - getTimeString(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the
DateTimeFormatter.ISO_LOCAL_TIMEformatter. - getTimeString(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_OFFSET_TIMEformatter. - getTimeString(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this time with the
DateTimeFormatter.ISO_OFFSET_TIMEformatter. - getTimeString(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Formats this date/time with the
DateTimeFormatter.ISO_LOCAL_TIMEformatter 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_ERAargument. - 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
trueif the DayOfWeek is a weekday. - isWeekend(DayOfWeek) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns
trueif 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
LocalDateTimefrom this date and the providedLocalTime. - leftShift(LocalDate, OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
OffsetDateTimefrom this date and the providedOffsetTime. - leftShift(LocalDateTime, ZoneId) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
OffsetDateTimeof this date/time and the providedZoneId. - leftShift(LocalDateTime, ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimeof this date/time and the providedZoneOffset. - leftShift(LocalTime, LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTimeof this time and the providedLocalDate. - leftShift(LocalTime, ZoneOffset) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTimeof this time and the providedZoneOffset. - leftShift(MonthDay, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateof 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
MonthDayat 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
OffsetDateTimeof this time and the providedLocalDate. - leftShift(YearMonth, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateof 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
ZonedDateTimeof this zone and the givenLocalDateTime. - leftShift(ZoneOffset, LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimeof this offset and the providedLocalDateTime. - leftShift(ZoneOffset, LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimeof this offset and the providedLocalTime.
M
- minus(DayOfWeek, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
DayOfWeekthat isdaysmany days before this day of the week. - minus(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Durationthat issecondsseconds shorter that this duration. - minus(Instant, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instantthat issecondsseconds before this instant. - minus(LocalDate, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDatethat isdaysdays 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
LocalDateTimethat issecondsseconds before this date/time. - minus(LocalTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTimethat issecondsseconds before this time. - minus(Month, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
Monththat ismonthsmonths before this month. - minus(OffsetDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimethat issecondsseconds before this date/time. - minus(OffsetTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTimethat issecondsseconds before this time. - minus(Period, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Periodthat isdaysdays shorter than this period. - minus(YearMonth, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonththat ismonthsmonths before this year/month. - minus(Year, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Yearthat isyearsyears before this year. - minus(ZonedDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTimethat issecondsseconds 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
Durationthat is one second longer than this duration. - next(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instantthat is one second after this instant. - next(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateone day after this date. - next(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTimethat is one second after this date/time. - next(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTimethat is one second after this time. - next(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimeone second after this date/time. - next(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTimethat is one second after this time. - next(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Periodthat is one day longer than this period. - next(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Yearafter this year. - next(YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonththat is the month after this year/month. - next(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTimethat 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
LocalDateusing the provided pattern. - parse(LocalDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
LocalDateTimeusing the provided pattern. - parse(LocalTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
LocalTimeusing the provided pattern. - parse(MonthDay, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
MonthDayusing the provided pattern. - parse(OffsetDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into an
OffsetDateTimeusing the provided pattern. - parse(OffsetTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into an
OffsetTimeusing the provided pattern. - parse(YearMonth, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
YearMonthusing the provided pattern. - parse(Year, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
Yearusing the provided pattern. - parse(ZonedDateTime, CharSequence, String) - Static method in class org.apache.groovy.datetime.extensions.DateTimeStaticExtensions
-
Parse text into a
ZonedDateTimeusing the provided pattern. - plus(DayOfWeek, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
DayOfWeekthat isdaysmany days after this day of the week. - plus(Duration, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Durationthat issecondsseconds longer than this duration. - plus(Instant, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instantthat issecondsseconds after this instant. - plus(LocalDate, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDatethat isdaysdays after this date. - plus(LocalDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTimethat issecondsseconds after this date/time. - plus(LocalTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTimethat issecondsseconds after this time. - plus(Month, int) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns the
Monththat ismonthsmonths after this month. - plus(OffsetDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimethat issecondsseconds after this date/time. - plus(OffsetTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTimethat issecondsseconds after this time. - plus(Period, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Periodthat isdaysdays longer than this period. - plus(YearMonth, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonththat ismonthsmonths after this year/month. - plus(Year, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Yearthat isyearsyears after this year. - plus(ZonedDateTime, long) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTimethat issecondsseconds 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
Periodwith all unit values positive. - previous(Duration) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Durationthat is one second shorter than this duration. - previous(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
Instantthat one second before this instant. - previous(LocalDate) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateone day before this date. - previous(LocalDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalDateTimethat is one second before this date/time. - previous(LocalTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
LocalTimethat is one second before this time. - previous(OffsetDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetDateTimeone second before this date/time. - previous(OffsetTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns an
OffsetTimethat is one second before this time. - previous(Period) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Periodthat is one day shorter than this period. - previous(Year) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
Yearbefore this year. - previous(YearMonth) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
YearMonththat is the month before this year/month. - previous(ZonedDateTime) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a
ZonedDateTimethat 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
ZoneOffsetcurrently associated with the system defaultZoneId.
T
- toCalendar(Instant) - Static method in class org.apache.groovy.datetime.extensions.DateTimeExtensions
-
Returns a generally equivalent
Calendarin 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
Dateaccording 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
TimeZoneequivalent 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
toTemporal, 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
toTemporal, inclusive, incrementing by oneuniteach iteration, calling the closure once per iteration.
All Classes and Interfaces|All Packages