| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static Weekmodel |
Weekmodel.ISO
Standard week rules as defined by ISO-8601.
|
| Modifier and Type | Method and Description |
|---|---|
static Weekmodel |
Weekmodel.of(Locale locale)
Gets a suitable weekmodel for the given country.
|
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.
|
static Weekmodel |
Weekmodel.ofSystem()
Gets a suitable weekmodel for the default locale of system.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Weekday.getValue(Weekmodel model)
Gets the numerical value corresponding to the rule of given
week model on which day a week starts.
|
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.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 |
|---|---|
static Weekmodel |
VietnameseCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
ThaiSolarCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
PersianCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
MinguoCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
KoreanCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
JulianCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
JucheCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
JapaneseCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
IndianCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
HistoricCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
HijriCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
HebrewCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
EthiopianCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
CopticCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
static Weekmodel |
ChineseCalendar.getDefaultWeekmodel()
Obtains the standard week model of this calendar.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T> & CalendarDate> |
CommonElements.boundedWeekOfMonth(Chronology<T> chronology,
Weekmodel model)
Creates an integer element for the week of month in given chronology dependent on given week model
and constrained by month boundaries.
|
static <T extends ChronoEntity<T> & CalendarDate> |
CommonElements.boundedWeekOfYear(Chronology<T> chronology,
Weekmodel model)
Creates an integer element for the week of year in given chronology dependent on given week model
and constrained by year boundaries.
|
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. |
static <T extends ChronoEntity<T> & CalendarDate> |
CommonElements.weekOfMonth(Chronology<T> chronology,
Weekmodel model)
Creates an integer element for the week of month in given chronology dependent on given week model.
|
static <T extends ChronoEntity<T> & CalendarDate> |
CommonElements.weekOfYear(Chronology<T> chronology,
Weekmodel model)
Creates an integer element for the week of year in given chronology dependent on given week model.
|
Copyright © 2014–2021. All rights reserved.