| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.calendar |
Support for various regional calendars.
|
| net.time4j.calendar.bahai |
Support for the Badi calendar.
|
| net.time4j.calendar.frenchrev |
Support for the French revolutionary calendar.
|
| net.time4j.calendar.hindu |
Support for the traditional Hindu calendar family.
|
| net.time4j.format |
Defines common interfaces for any format support of Time4J.
|
| net.time4j.range |
Interval support.
|
| net.time4j.tz.model |
Permits the construction of historized or rule-based timezones.
|
| Modifier and Type | Field and Description |
|---|---|
static NavigableElement<Weekday> |
PlainDate.DAY_OF_WEEK
Element with the day of week in the value range
MONDAY-SUNDAY. |
| Modifier and Type | Method and Description |
|---|---|
static Weekday |
Weekday.from(DayOfWeek dayOfWeek)
Conversion from the
java.time-equivalent. |
Weekday |
PlainDate.getDayOfWeek()
Determines the day of week.
|
Weekday |
Weekmodel.getEndOfWeekend()
Defines the last day of weekend.
|
Weekday |
Weekmodel.getFirstDayOfWeek()
Defines the first day of the calendar week in this model.
|
Weekday |
Weekmodel.getFirstWorkday()
Gets the first working day as first day after end of weekend.
|
Weekday |
Weekmodel.getStartOfWeekend()
Defines the first day of the weekend.
|
Weekday |
Weekday.next()
Rolls to the next day of week.
|
static Weekday |
Weekday.parse(CharSequence text,
Locale locale,
TextWidth width,
OutputContext context)
Tries to interprete given text as day-of-week.
|
Weekday |
Weekday.previous()
Rolls to the previous day of week.
|
Weekday |
Weekday.roll(int days)
Rolls this day of week by given amount of days.
|
static Weekday |
Weekday.valueOf(int dayOfWeek)
Gets the enum-constant which corresponds to the given numerical
value.
|
static Weekday |
Weekday.valueOf(int year,
Month monthOfYear,
int dayOfMonth)
Gets the weekday corresponding to given gregorian date.
|
static Weekday |
Weekday.valueOf(int dayOfWeek,
Weekmodel model)
Gets the enum-constant which corresponds to the given localized
numerical value taking into account given week model.
|
static Weekday |
Weekday.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weekday[] |
Weekday.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Weekday[] |
Weekday.values(Weekmodel model)
Yields an array which is sorted corresponding to the rule of given
week model on which day a week starts.
|
| Modifier and Type | Method and Description |
|---|---|
NavigableElement<Weekday> |
Weekmodel.localDayOfWeek()
Defines an element for the weekday with a localized day number in
the value range
1-7. |
Stream<Weekday> |
Weekmodel.stream()
Obtains a stream where the first element is the first day of week.
|
| Modifier and Type | Method and Description |
|---|---|
static PlainDate |
PlainDate.of(int yearOfWeekdate,
int weekOfYear,
Weekday dayOfWeek)
Creates a new week-date conforming to ISO-8601.
|
static Weekmodel |
Weekmodel.of(Weekday firstDayOfWeek,
int minimalDaysInFirstWeek)
Creates a new week model with the given rules and the
weekend-definition Saturday/Sunday.
|
static Weekmodel |
Weekmodel.of(Weekday firstDayOfWeek,
int minimalDaysInFirstWeek,
Weekday startOfWeekend,
Weekday endOfWeekend)
Creates a new week model with the given rules.
|
String |
PrettyTime.printLast(Weekday weekday)
Obtains the localized word for given last day-of-week if available.
|
String |
PrettyTime.printNext(Weekday weekday)
Obtains the localized word for given next day-of-week if available.
|
default ElementOperator<PlainDate> |
OrdinalWeekdayElement.setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday
in month.
|
| Modifier and Type | Field and Description |
|---|---|
static StdCalendarElement<Weekday,VietnameseCalendar> |
VietnameseCalendar.DAY_OF_WEEK
Represents the Vietnamese day of week.
|
static StdCalendarElement<Weekday,ThaiSolarCalendar> |
ThaiSolarCalendar.DAY_OF_WEEK
Represents the day of week.
|
static StdCalendarElement<Weekday,PersianCalendar> |
PersianCalendar.DAY_OF_WEEK
Represents the Persian day of week.
|
static StdCalendarElement<Weekday,MinguoCalendar> |
MinguoCalendar.DAY_OF_WEEK
Represents the day of week.
|
static StdCalendarElement<Weekday,KoreanCalendar> |
KoreanCalendar.DAY_OF_WEEK
Represents the Korean day of week.
|
static ChronoElement<Weekday> |
JulianCalendar.DAY_OF_WEEK
Represents the Julian day of week.
|
static StdCalendarElement<Weekday,JucheCalendar> |
JucheCalendar.DAY_OF_WEEK
Represents the day of week.
|
static StdCalendarElement<Weekday,JapaneseCalendar> |
JapaneseCalendar.DAY_OF_WEEK
Represents the Japanese day of week.
|
static StdCalendarElement<Weekday,IndianCalendar> |
IndianCalendar.DAY_OF_WEEK
Represents the Indian day of week.
|
static StdCalendarElement<Weekday,HistoricCalendar> |
HistoricCalendar.DAY_OF_WEEK
Represents the historic day of week.
|
static StdCalendarElement<Weekday,HijriCalendar> |
HijriCalendar.DAY_OF_WEEK
Represents the islamic day of week.
|
static StdCalendarElement<Weekday,HebrewCalendar> |
HebrewCalendar.DAY_OF_WEEK
Represents the Hebrew day of week.
|
static StdCalendarElement<Weekday,EthiopianCalendar> |
EthiopianCalendar.DAY_OF_WEEK
Represents the Ethiopian day of week.
|
static StdCalendarElement<Weekday,CopticCalendar> |
CopticCalendar.DAY_OF_WEEK
Represents the Coptic day of week.
|
static StdCalendarElement<Weekday,ChineseCalendar> |
ChineseCalendar.DAY_OF_WEEK
Represents the Chinese day of week.
|
static StdCalendarElement<Weekday,PersianCalendar> |
PersianCalendar.LOCAL_DAY_OF_WEEK
Equivalent to
CommonElements.localDayOfWeek(PersianCalendar.axis(), PersianCalendar.getDefaultWeekmodel()). |
static StdCalendarElement<Weekday,HijriCalendar> |
HijriCalendar.LOCAL_DAY_OF_WEEK
Equivalent to
CommonElements.localDayOfWeek(HijriCalendar.family(), HijriCalendar.getDefaultWeekmodel()). |
static StdCalendarElement<Weekday,HebrewCalendar> |
HebrewCalendar.LOCAL_DAY_OF_WEEK
Equivalent to
CommonElements.localDayOfWeek(HebrewCalendar.axis(), HebrewCalendar.getDefaultWeekmodel()). |
| Modifier and Type | Method and Description |
|---|---|
Weekday |
ThaiSolarCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
PersianCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
MinguoCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
JulianCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
JucheCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
JapaneseCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
IndianCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
HistoricCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
HijriCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
HebrewCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
EthiopianCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
EastAsianCalendar.getDayOfWeek()
Determines the day of week.
|
Weekday |
CopticCalendar.getDayOfWeek()
Determines the day of week.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T> & CalendarDate> |
CommonElements.localDayOfWeek(Chronology<T> chronology,
Weekmodel model)
Defines an element for the weekday with a localized day number in
the value range
1-7. |
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<T> |
OrdinalWeekdayElement.setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday in month.
|
ChronoOperator<T> |
OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
|
ChronoOperator<T> |
OrdinalWeekdayElement.setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
|
| Modifier and Type | Field and Description |
|---|---|
static StdCalendarElement<Weekday,BadiCalendar> |
BadiCalendar.DAY_OF_WEEK
Represents the day of week.
|
| Modifier and Type | Method and Description |
|---|---|
Weekday |
BadiCalendar.getDayOfWeek()
Determines the day of standard-week (with seven days).
|
| Modifier and Type | Field and Description |
|---|---|
static StdCalendarElement<Weekday,FrenchRepublicanCalendar> |
FrenchRepublicanCalendar.DAY_OF_WEEK
Represents the day of week where the week is seven days long.
|
| Modifier and Type | Method and Description |
|---|---|
Weekday |
FrenchRepublicanCalendar.getDayOfWeek()
Determines the day of standard-week (with seven days).
|
| Modifier and Type | Field and Description |
|---|---|
static StdCalendarElement<Weekday,HinduCalendar> |
HinduCalendar.DAY_OF_WEEK
Represents the Hindu day of week.
|
| Modifier and Type | Method and Description |
|---|---|
Weekday |
HinduCalendar.getDayOfWeek()
Determines the day of week.
|
| Modifier and Type | Method and Description |
|---|---|
default String |
RelativeTimeProvider.labelForLast(Weekday weekday,
Locale lang)
Yields the localized word for "last {weekday}".
|
default String |
RelativeTimeProvider.labelForNext(Weekday weekday,
Locale lang)
Yields the localized word for "next {weekday}".
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoElement<Weekday> |
SpanOfWeekdays.END
Denotes the end of this span of weekdays (inclusive).
|
static ChronoElement<Weekday> |
SpanOfWeekdays.START
Denotes the start of this span of weekdays.
|
| Modifier and Type | Method and Description |
|---|---|
Weekday |
SpanOfWeekdays.getEnd()
Obtains the end of this span of weekdays.
|
Weekday |
SpanOfWeekdays.getStart()
Obtains the start of this span of weekdays.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Weekday> |
SpanOfWeekdays.iterator() |
| Modifier and Type | Method and Description |
|---|---|
DayPartitionBuilder |
DayPartitionBuilder.addWeekdayRule(Weekday dayOfWeek,
ClockInterval partition)
Adds a rule to partition a date dependending on its day of week.
|
DayPartitionBuilder |
DayPartitionBuilder.addWeekdayRule(Weekday from,
Weekday to,
ClockInterval partition)
Adds a rule to partition a date dependending on when its day of week falls into given range.
|
PlainDate |
CalendarWeek.at(Weekday dayOfWeek)
Combines this calendar week with given day of week to a calendar date.
|
static SpanOfWeekdays |
SpanOfWeekdays.between(Weekday start,
Weekday end)
Creates a new span of weekdays.
|
static DateInterval |
DateInterval.ofCurrentWeek(TimeSource clock,
TZID tzid,
Weekday firstDay)
Obtains the current calendar week based on given clock, time zone and first day of week.
|
static SpanOfWeekdays |
SpanOfWeekdays.on(Weekday day)
Creates a span of weekdays of only one day.
|
| Modifier and Type | Method and Description |
|---|---|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofLastWeekday(Month month,
Weekday dayOfWeek,
int timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for the last day of week in given month.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofLastWeekday(Month month,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for the last day of week in given month.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayAfterDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
int timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week after the given reference date.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayAfterDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week after the given reference date.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
int timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week before the given reference date.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week before the given reference date.
|
Copyright © 2014–2021. All rights reserved.