| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Field and Description |
|---|---|
static ProportionalElement<Integer,PlainDate> |
PlainDate.DAY_OF_MONTH
Element with the day of month in the value range
1-28/29/30/31. |
static ProportionalElement<Integer,PlainDate> |
PlainDate.DAY_OF_QUARTER
Element with the day within a quarter of year in the value range
1-90/91/92. |
static ProportionalElement<Integer,PlainDate> |
PlainDate.DAY_OF_YEAR
Element with the day of year in the value range
1-365/366). |
static TemporalType<LocalDate,PlainDate> |
TemporalType.LOCAL_DATE
Bridge between the JSR-310-class
java.time.LocalDate and
the class PlainDate. |
static ProportionalElement<Integer,PlainDate> |
PlainDate.MONTH_AS_NUMBER
Element with the calendar month in numerical form and the value range
1-12. |
static AdjustableElement<Integer,PlainDate> |
PlainDate.YEAR
Element with the proleptic iso-year without any era reference and
the value range
-999999999 until 999999999. |
static AdjustableElement<Integer,PlainDate> |
PlainDate.YEAR_OF_WEEKDATE
Defines an element for the week-based year in an
ISO-8601-weekdate.
|
| Modifier and Type | Method and Description |
|---|---|
static PlainDate |
PlainDate.from(GregorianDate date)
Common conversion method for proleptic gregorian dates.
|
static PlainDate |
PlainDate.from(LocalDate date)
Short cut for
TemporalType.LOCAL_DATE.translate(date). |
PlainDate |
PlainTimestamp.getCalendarDate()
Provides the calendar date part.
|
static PlainDate |
PlainDate.of(int year,
int dayOfYear)
Creates a new ordinal date conforming to ISO-8601.
|
static PlainDate |
PlainDate.of(int year,
int month,
int dayOfMonth)
Creates a new calendar date conforming to ISO-8601.
|
static PlainDate |
PlainDate.of(int yearOfWeekdate,
int weekOfYear,
Weekday dayOfWeek)
Creates a new week-date conforming to ISO-8601.
|
static PlainDate |
PlainDate.of(int year,
Month month,
int dayOfMonth)
Creates a new calendar date conforming to ISO-8601.
|
static PlainDate |
PlainDate.of(long amount,
EpochDays epoch)
Creates a new date based on count of days since given epoch.
|
PlainDate |
PlainTimestamp.toDate()
Synonym for
getCalendarDate(). |
PlainDate |
ZonalClock.today()
Ermittelt das aktuelle Datum in der assoziierten Zeitzone.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeAxis<IsoDateUnit,PlainDate> |
PlainDate.axis()
Provides a static access to the associated chronology on base of
epoch days which contains the chronological rules.
|
AdjustableElement<Integer,PlainDate> |
Weekmodel.boundedWeekOfMonth()
Defines an element for the week of month with a localized week number,
constrained to the current calendar month.
|
AdjustableElement<Integer,PlainDate> |
Weekmodel.boundedWeekOfYear()
Defines an element for the week of year with a localized week number,
constrained to the current calendar year.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextMonth()
Adjusts a calendar date to the first day of next month.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextQuarter()
Adjusts a calendar date to the first day of next quarter year.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextYear()
Adjusts a calendar date to the first day of next year.
|
static TemporalFormatter<PlainDate> |
PlainDate.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain dates.
|
static <P extends ChronoPattern<P>> |
PlainDate.formatter(String formatPattern,
P patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain dates.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousMonth()
Adjusts a calendar date to the last day of previous month.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousQuarter()
Adjusts a calendar date to the last day of previous quarter year.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousYear()
Adjusts a calendar date to the last day of previous year.
|
static TemporalFormatter<PlainDate> |
PlainDate.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain dates.
|
static <P extends ChronoPattern<P>> |
PlainDate.localFormatter(String formatPattern,
P patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain dates.
|
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> |
NavigableElement.setToNext(V value)
Moves a time point to the first given element value which is after
the current element value.
|
ElementOperator<PlainDate> |
NavigableElement.setToNextOrSame(V value)
Moves a time point to the first given element value which is after
or equal to the current element value.
|
ElementOperator<PlainDate> |
NavigableElement.setToPrevious(V value)
Moves a time point to the first given element value which is before
the current element value.
|
ElementOperator<PlainDate> |
NavigableElement.setToPreviousOrSame(V value)
Moves a time point to the first given element value which is before
or equal to the current element value.
|
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.
|
AdjustableElement<Integer,PlainDate> |
Weekmodel.weekOfMonth()
Defines an element for the calendar week of month with a localized
week number.
|
AdjustableElement<Integer,PlainDate> |
Weekmodel.weekOfYear()
Defines an element for the calendar week of year with a localized
week number.
|
| Modifier and Type | Method and Description |
|---|---|
static PlainTimestamp |
PlainTimestamp.of(PlainDate date,
PlainTime time)
Creates a new local timestamp with calendar date and wall time.
|
PlainTimestamp |
PlainTimestamp.with(PlainDate date)
Adjusts the calendar part of this timestamp.
|
Copyright © 2014–2015. All rights reserved.