Uses of Interface
javax.time.calendar.DateAdjuster
Packages that use DateAdjuster
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of DateAdjuster in javax.time.calendar
Classes in javax.time.calendar that implement DateAdjusterModifier and TypeClassDescriptionprivate static final class
Class implementing day-of-week in month adjuster.private static enum
Enum implementing the adjusters.private static final class
Implementation of next, previous or current day-of-week.final class
A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.final class
A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.final class
A month-day in the ISO-8601 calendar system, such as--12-03
.final class
A date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00
.final class
A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.final class
A year in the ISO-8601 calendar system, such as2007
.final class
A year-month in the ISO-8601 calendar system, such as2007-12
.Methods in javax.time.calendar that return DateAdjusterModifier and TypeMethodDescriptionstatic DateAdjuster
DateAdjusters.dayOfWeekInMonth
(int ordinal, DayOfWeek dayOfWeek) Returns the day-of-week in month adjuster, which returns a new date in the same month with the ordinal day-of-week.static DateAdjuster
DateAdjusters.firstDayOfMonth()
Returns the first day-of-month adjuster, which returns a new date with the day-of-month changed to be the first day of the month.static DateAdjuster
DateAdjusters.firstDayOfYear()
Returns the first day-of-year adjuster, which returns a new date with the day-of-year changed to be the first day of the year - January 1.static DateAdjuster
DateAdjusters.firstInMonth
(DayOfWeek dayOfWeek) Returns the first in month adjuster, which returns a new date in the same month with the first matching day-of-week.static DateAdjuster
DateAdjusters.lastDayOfMonth()
Returns the last day-of-month adjuster, which returns a new date with the day-of-month changed to be the last valid day of the month.static DateAdjuster
DateAdjusters.lastDayOfYear()
Returns the last day-of-year adjuster, which returns a new date with the day-of-year changed to be the last day of the year - December 31.static DateAdjuster
Returns the next day-of-week adjuster, which adjusts the date to be the next of the specified day-of-week after the specified date.static DateAdjuster
DateAdjusters.nextNonWeekendDay()
Returns the next non weekend day adjuster, which adjusts the date one day forward skipping Saturday and Sunday.static DateAdjuster
DateAdjusters.nextOrCurrent
(DayOfWeek dow) Returns the next or current day-of-week adjuster, which adjusts the date to be be the next of the specified day-of-week, returning the input date if the day-of-week matched.static DateAdjuster
Returns the previous day-of-week adjuster, which adjusts the date to be the previous of the specified day-of-week after the specified date.static DateAdjuster
DateAdjusters.previousOrCurrent
(DayOfWeek dow) Returns the previous or current day-of-week adjuster, which adjusts the date to be be the previous of the specified day-of-week, returning the input date if the day-of-week matched.Methods in javax.time.calendar with parameters of type DateAdjusterModifier and TypeMethodDescriptionLocalDate.with
(DateAdjuster adjuster) Returns a copy of thisLocalDate
with the date altered using the adjuster.LocalDateTime.with
(DateAdjuster adjuster) Returns a copy of thisLocalDateTime
with the date altered using the adjuster.OffsetDate.with
(DateAdjuster adjuster) Returns a copy of thisOffsetDate
with the date altered using the adjuster.OffsetDateTime.with
(DateAdjuster adjuster) Returns a copy of this OffsetDateTime with the date altered using the adjuster.ZonedDateTime.with
(DateAdjuster adjuster) Returns a copy of thisZonedDateTime
with the date altered using the adjuster.ZonedDateTime.with
(DateAdjuster adjuster, ZoneResolver resolver) Returns a copy of thisZonedDateTime
with the date altered using the adjuster, providing a resolver to handle an invalid date-time.