| Package | Description |
|---|---|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
| java.time.zone |
Support for time-zones and their rules.
|
| Modifier and Type | Method and Description |
|---|---|
static DayOfWeek |
DayOfWeek.from(TemporalAccessor
Obtains an instance of
DayOfWeek from a temporal object.
|
DayOfWeek |
LocalDate.getDayOfWeek()
Gets the day-of-week field, which is an enum
DayOfWeek.
|
DayOfWeek |
ZonedDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enum
DayOfWeek.
|
DayOfWeek |
OffsetDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enum
DayOfWeek.
|
DayOfWeek |
LocalDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enum
DayOfWeek.
|
DayOfWeek |
DayOfWeek.minus(long days)
Returns the day-of-week that is the specified number of days before this one.
|
static DayOfWeek |
DayOfWeek.of(int dayOfWeek)
Obtains an instance of
DayOfWeek from an
int value.
|
DayOfWeek |
DayOfWeek.plus(long days)
Returns the day-of-week that is the specified number of days after this one.
|
static DayOfWeek |
DayOfWeek.valueOf(String
Returns the enum constant of this type with the specified name.
|
static DayOfWeek |
DayOfWeek.values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
DayOfWeek |
WeekFields.getFirstDayOfWeek()
Gets the first day-of-week.
|
| Modifier and Type | Method and Description |
|---|---|
static TemporalAdjuster |
TemporalAdjusters.dayOfWeekInMonth(int ordinal, 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 TemporalAdjuster |
TemporalAdjusters.firstInMonth(DayOfWeek
Returns the first in month adjuster, which returns a new date in the same month with the first matching day-of-week.
|
static TemporalAdjuster |
TemporalAdjusters.lastInMonth(DayOfWeek
Returns the last in month adjuster, which returns a new date in the same month with the last matching day-of-week.
|
static TemporalAdjuster |
TemporalAdjusters.next(DayOfWeek
Returns the next day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted.
|
static TemporalAdjuster |
TemporalAdjusters.nextOrSame(DayOfWeek
Returns the next-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted unless it is already on that day in which case the same object is returned.
|
static WeekFields |
WeekFields.of(DayOfWeek
Obtains an instance of
WeekFields from the first day-of-week and minimal days.
|
static TemporalAdjuster |
TemporalAdjusters.previous(DayOfWeek
Returns the previous day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted.
|
static TemporalAdjuster |
TemporalAdjusters.previousOrSame(DayOfWeek
Returns the previous-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted unless it is already on that day in which case the same object is returned.
|
| Modifier and Type | Method and Description |
|---|---|
DayOfWeek |
ZoneOffsetTransitionRule.getDayOfWeek()
Gets the day-of-week of the transition.
|
| Modifier and Type | Method and Description |
|---|---|
static ZoneOffsetTransitionRule |
ZoneOffsetTransitionRule.of(Month
Obtains an instance defining the yearly rule to create transitions between two offsets.
|