Uses of Class
net.time4j.PlainDate
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
This package contains the expert-level format- and parse engine of Time4J.
Temporal formatters which access the platform specific resources.
Support for the historical ancestors of modern ISO-8601-standard.
Interval support.
Bridge to JDBC.
Permits the construction of historized or rule-based timezones.
Bridge to XML.
-
Uses of PlainDate in net.time4j
Modifier and TypeFieldDescriptionstatic ProportionalElement<Integer,PlainDate>
PlainDate.DAY_OF_MONTH
Element with the day of month in the value range1-28/29/30/31
.static ProportionalElement<Integer,PlainDate>
PlainDate.DAY_OF_QUARTER
Element with the day within a quarter of year in the value range1-90/91/92
.static ProportionalElement<Integer,PlainDate>
PlainDate.DAY_OF_YEAR
Element with the day of year in the value range1-365/366
).static TemporalType<LocalDate,PlainDate>
TemporalType.LOCAL_DATE
Bridge between the JSR-310-classjava.time.LocalDate
and the classPlainDate
.static ProportionalElement<Integer,PlainDate>
PlainDate.MONTH_AS_NUMBER
Element with the calendar month in numerical form and the value range1-12
.static AdjustableElement<Integer,PlainDate>
PlainDate.YEAR
Element with the proleptic iso-year without any era reference and the value range-999999999
until999999999
.static AdjustableElement<Integer,PlainDate>
PlainDate.YEAR_OF_WEEKDATE
Defines an element for the week-based year in an ISO-8601-weekdate.Modifier and TypeMethodDescriptionAnnualDate.atYear(int year)
Creates a complete ISO calendar date for given gregorian year.static PlainDate
Short cut forTemporalType.LOCAL_DATE.translate(date)
.static PlainDate
PlainDate.from(GregorianDate date)
Common conversion method for proleptic gregorian dates.PlainTimestamp.getCalendarDate()
Provides the calendar date part.PlainDate.minus(long amount, CalendarUnit unit)
Subtracts given amount in units from this date and yields the result of subtraction.static PlainDate
PlainDate.nowInSystemTime()
Obtains the current date in system time.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
Creates a new week-date conforming to ISO-8601.static PlainDate
Creates a new calendar date conforming to ISO-8601.static PlainDate
Creates a new date based on count of days since given epoch.static PlainDate
PlainDate.parse(String text, TemporalFormatter<PlainDate> parser)
Parses given text to an instance of this class.PlainDate.plus(long amount, CalendarUnit unit)
Adds given amount in units to this date and yields the result of addition.PlainTimestamp.toDate()
Synonym forgetCalendarDate()
.ZonalClock.today()
Gets the current date in the associated timezone.Modifier and TypeMethodDescriptionAnnualDate.asNextExactEvent()
Determines the next possible exact annual date.AnnualDate.asNextRoundedEvent()
Determines the next possible annual date and rounds up to next day if necessary.static TimeAxis<IsoDateUnit,PlainDate>
PlainDate.axis()
Provides a static access to the associated chronology on base of epoch days which contains the chronological rules.Weekmodel.boundedWeekOfMonth()
Defines an element for the week of month with a localized week number, constrained to the current calendar month.Weekmodel.boundedWeekOfYear()
Defines an element for the week of year with a localized week number, constrained to the current calendar year.CalendarDateElement.firstDayOfNextMonth()
Adjusts a calendar date to the first day of next month.CalendarDateElement.firstDayOfNextQuarter()
Adjusts a calendar date to the first day of next quarter year.CalendarDateElement.firstDayOfNextYear()
Adjusts a calendar date to the first day of next year.CalendarDateElement.lastDayOfPreviousMonth()
Adjusts a calendar date to the last day of previous month.CalendarDateElement.lastDayOfPreviousQuarter()
Adjusts a calendar date to the last day of previous quarter year.CalendarDateElement.lastDayOfPreviousYear()
Adjusts a calendar date to the last day of previous year.default ElementOperator<PlainDate>
Defines an operator which moves a date to the given ordinal weekday in month.OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.OrdinalWeekdayElement.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday in month.Defines an operator which moves a date to the last given weekday in month.Moves a time point to the first given element value which is after the current element value.NavigableElement.setToNextOrSame(V value)
Moves a time point to the first given element value which is after or equal to the current element value.NavigableElement.setToPrevious(V value)
Moves a time point to the first given element value which is before the current element value.NavigableElement.setToPreviousOrSame(V value)
Moves a time point to the first given element value which is before or equal to the current element value.OrdinalWeekdayElement.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday in month.OrdinalWeekdayElement.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday in month.Weekmodel.weekOfMonth()
Defines an element for the calendar week of month with a localized week number.Weekmodel.weekOfYear()
Defines an element for the calendar week of year with a localized week number.Modifier and TypeMethodDescriptionlong
Calculates the temporal distance between given calendar dates in this calendar unit.static PlainTimestamp
Creates a new local timestamp with calendar date and wall time.PrettyTime.printRelativeOrDate(PlainDate date, TZID tzid, CalendarUnit maxRelativeUnit, TemporalFormatter<PlainDate> formatter)
Formats given date relative to the current date ofPrettyTime.getReferenceClock()
as duration or as absolute date.Adjusts the calendar part of this timestamp.Modifier and TypeMethodDescriptionstatic PlainDate
PlainDate.parse(String text, TemporalFormatter<PlainDate> parser)
Parses given text to an instance of this class.PlainDate.print(TemporalFormatter<PlainDate> printer)
Creates a formatted output of this instance.PrettyTime.printRelativeOrDate(PlainDate date, TZID tzid, CalendarUnit maxRelativeUnit, TemporalFormatter<PlainDate> formatter)
Formats given date relative to the current date ofPrettyTime.getReferenceClock()
as duration or as absolute date. -
Uses of PlainDate in net.time4j.calendar
Modifier and TypeMethodDescriptionHijriData.firstGregorianDate()
Obtains the gregorian date of first day and month in minimum Hijri year.Nengo.getStart()
Obtains the first date when this nengo took effect.Modifier and TypeMethodDescriptionHebrewAnniversary.inGregorianYear(int gyear)
Determines the input calendar date as original event date and determines the anniversary days of this event in given gregorian year. -
Uses of PlainDate in net.time4j.format.expert
Modifier and TypeFieldDescriptionstatic ChronoFormatter<PlainDate>
Iso8601Format.BASIC_CALENDAR_DATE
Defines the basic ISO-8601-format with year, month and day of month using the pattern "uuuuMMdd".static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_DATE
Similar toIso8601Format.BASIC_CALENDAR_DATE
but its parser can also understand ordinal dates or week dates.static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_ORDINAL_DATE
Defines the basic ISO-8601-format with year and day of year using the pattern "uuuuDDD".static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_WEEK_DATE
Defines the basic ISO-8601-format for a week date using the pattern "YYYYWwwE".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_CALENDAR_DATE
Defines the extended ISO-8601-format with year, month and day of month using the pattern "uuuu-MM-dd".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_DATE
Similar toIso8601Format.EXTENDED_CALENDAR_DATE
but its parser can also understand ordinal dates or week dates.static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_ORDINAL_DATE
Defines the extended ISO-8601-format with year and day of year using the pattern "uuuu-DDD".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_WEEK_DATE
Defines the extended ISO-8601-format for a week date using the pattern "YYYY-Www-E".Modifier and TypeMethodDescriptionstatic PlainDate
Iso8601Format.parseDate(CharSequence iso)
Parses given ISO-8601-compatible date string in basic or extended format.static PlainDate
Iso8601Format.parseDate(CharSequence iso, ParseLog plog)
Parses given ISO-8601-compatible date string in basic or extended format.Modifier and TypeMethodDescriptionstatic ChronoPrinter<PlainDate>
Iso8601Format.ofDate(IsoDateStyle style)
Obtains a printer with given styles for printing a calendar date.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDatePattern(String pattern, PatternType type, Locale locale)
Constructs a pattern-based formatter for plain date objects.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDateStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain date objects.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDateStyle(DisplayMode style, Locale locale)
Deprecated.Modifier and TypeMethodDescriptionChronoFormatter.withGregorianCutOver(PlainDate date)
Short-cut forwith(ChronoHistory.ofGregorianReform(date))
. -
Uses of PlainDate in net.time4j.format.platform
Modifier and TypeMethodDescriptionstatic SimpleFormatter<PlainDate>
SimpleFormatter.ofDatePattern(String pattern, Locale locale)
Creates a new formatter which uses the given pattern and locale for formatting and parsing plain dates.static SimpleFormatter<PlainDate>
SimpleFormatter.ofDateStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain date objects.static SimpleFormatter<PlainDate>
SimpleFormatter.ofDateStyle(DisplayMode style, Locale locale)
Deprecated. -
Uses of PlainDate in net.time4j.history
Modifier and TypeMethodDescriptionChronoHistory.convert(HistoricDate date)
Converts given historic date to an ISO-8601-date.Computus.easterSunday(int annoDomini)
Calculates the date of Easter Sunday.ChronoHistory.getGregorianCutOverDate()
Yields the date of final introduction of gregorian calendar.Modifier and TypeMethodDescriptionstatic EraPreference
EraPreference.abUrbeConditaBetween(PlainDate start, PlainDate end)
Determines the era Ab Urbe Condita to be preferred within given date range.static EraPreference
EraPreference.abUrbeConditaUntil(PlainDate end)
Determines the era Ab Urbe Condita to be preferred until given date.static EraPreference
EraPreference.byzantineBetween(PlainDate start, PlainDate end)
Determines the era Anno Mundi to be preferred within given date range.static EraPreference
EraPreference.byzantineUntil(PlainDate end)
Determines the era Anno Mundi to be preferred until given date.Converts given ISO-8601-date to a historic date.static EraPreference
EraPreference.hispanicBetween(PlainDate start, PlainDate end)
Determines the hispanic era to be preferred within given date range.static EraPreference
EraPreference.hispanicUntil(PlainDate end)
Determines the hispanic era to be preferred until given date.static ChronoHistory
ChronoHistory.ofGregorianReform(PlainDate start)
Describes a single switch from julian to gregorian calendar at given date. -
Uses of PlainDate in net.time4j.range
Modifier and TypeMethodDescriptionstatic <I extends ChronoInterval<PlainDate>>
IntervalTree<PlainDate,I>IntervalTree.onDateAxis(Collection<I> intervals)
Creates an interval tree on the date axis filled with given date intervals.Modifier and TypeMethodDescriptionCombines this calendar week with given day of week to a calendar date.CalendarMonth.atDayOfMonth(int dayOfMonth)
Combines this year and month with given day of month to a calendar date.CalendarQuarter.atDayOfQuarter(int dayOfQuarter)
Combines this calendar quarter with given day of quarter year to a calendar date.CalendarYear.atDayOfYear(int dayOfYear)
Combines this year with given day of year to a calendar date.CalendarMonth.atEndOfMonth()
Yields the date of the end of this calendar month.CalendarQuarter.atEndOfQuarter()
Yields the date of the end of this quarter year.DateInterval.getEndAsCalendarDate()
Yields the end date.DateInterval.getStartAsCalendarDate()
Yields the start date.DateInterval.random()
Obtains a random date within this interval.Modifier and TypeMethodDescriptionstatic Comparator<ChronoInterval<PlainDate>>
DateInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.default ChronoFunction<ChronoInterval<PlainDate>,Integer>
HolidayModel.countOfBusinessDays()
Queries the count of business days in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,Integer>
HolidayModel.countOfHolidays()
Queries the count of non-business days in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.firstBusinessDay()
Queries the first business day in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.firstBusinessDay()
Queries the first business day in an arbitrary date interval.default ChronoCondition<PlainDate>
HolidayModel.firstBusinessDayInMonth()
Queries if a given date is the first business day of month.CalendarMonth.getEnd()
CalendarQuarter.getEnd()
CalendarWeek.getEnd()
CalendarYear.getEnd()
CalendarMonth.getStart()
CalendarQuarter.getStart()
CalendarWeek.getStart()
CalendarYear.getStart()
CalendarMonth.iterator()
Iterates over all days of this calendar month.CalendarQuarter.iterator()
Iterates over all days of this calendar quarter year.CalendarWeek.iterator()
Iterates over all seven days from Monday to Sunday.CalendarYear.iterator()
Iterates over all days of this year.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.lastBusinessDay()
Queries the last business day in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.lastBusinessDay()
Queries the last business day in an arbitrary date interval.default ChronoCondition<PlainDate>
HolidayModel.lastBusinessDayInMonth()
Queries if a given date is the last business day of month.default ChronoOperator<PlainDate>
HolidayModel.nextBusinessDay()
Determines the next business day.default ChronoOperator<PlainDate>
HolidayModel.nextOrSameBusinessDay()
Determines the same or next business day.static IntervalCollection<PlainDate>
IntervalCollection.onDateAxis()
Yields an empty instance on the date axis.static <I extends ChronoInterval<PlainDate>>
IntervalTree<PlainDate,I>IntervalTree.onDateAxis(Collection<I> intervals)
Creates an interval tree on the date axis filled with given date intervals.default ChronoOperator<PlainDate>
HolidayModel.previousBusinessDay()
Determines the previous business day.default ChronoOperator<PlainDate>
HolidayModel.previousOrSameBusinessDay()
Determines the same or previous business day.DateInterval.stream(Duration<CalendarUnit> duration)
Obtains a stream iterating over every calendar date which is the result of addition of given duration to start until the end of this interval is reached.DateInterval.stream(Duration<CalendarUnit> duration, PlainDate start, PlainDate end)
Obtains a stream iterating over every calendar date which is the result of addition of given duration to start until the end is reached.DateInterval.streamDaily()
Obtains a stream iterating over every calendar date of the canonical form of this interval.DateInterval.streamDaily(PlainDate start, PlainDate end)
Obtains a stream iterating over every calendar date between given interval boundaries.FixedCalendarInterval.streamDaily()
Obtains a stream iterating over every calendar date of this interval.DateInterval.streamExcluding(Predicate<? super PlainDate> exclusion)
Obtains a stream iterating over every calendar date of the canonical form of this interval and applies given exclusion filter.DateInterval.streamWeekBased(int weekBasedYears, int isoWeeks, int days)
Obtains a stream iterating over every calendar date which is the result of addition of given duration in week-based units to start until the end of this interval is reached.<V> ValueInterval<PlainDate,T,V>
FixedCalendarInterval.withValue(V value)
Creates a combination of this interval with an associated value.Modifier and TypeMethodDescriptionDayPartitionBuilder.addExclusion(PlainDate date)
Adds an exclusion date.DayPartitionBuilder.addSpecialRule(PlainDate specialDay, ClockInterval partition)
Adds a rule to partition a special calendar date.static DateInterval
Creates a closed interval including only given date.static DateInterval
Creates a closed interval between given dates.boolean
boolean
boolean
boolean
static DateInterval
DateInterval.emptyWithAnchor(PlainDate anchor)
Creates an empty interval with an anchor date.DayPartitionRule.getPartitions(PlainDate date)
Obtains the partitions for given date if defined.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
default boolean
HolidayModel.isBusinessDay(PlainDate date)
Queries if given date is a business day.default boolean
DayPartitionRule.isExcluded(PlainDate date)
Determines if given date is excluded from creating day partitions.static IsoRecurrence<DateInterval>
IsoRecurrence.of(int count, Duration<? extends IsoDateUnit> duration, PlainDate end)
Creates a recurrent backward sequence of date intervals having given duration.static IsoRecurrence<DateInterval>
IsoRecurrence.of(int count, PlainDate start, Duration<? extends IsoDateUnit> duration)
Creates a recurrent sequence of date intervals having given duration.static IsoRecurrence<DateInterval>
Creates a recurrent sequence of date intervals having the duration of first interval in years, months and days.Creates a timestamp interval for given calendar date based on this clock interval.static DateInterval
Creates an infinite interval since given start date.DateInterval.stream(Duration<CalendarUnit> duration, PlainDate start, PlainDate end)
Obtains a stream iterating over every calendar date which is the result of addition of given duration to start until the end is reached.DateInterval.streamDaily(PlainDate start, PlainDate end)
Obtains a stream iterating over every calendar date between given interval boundaries.boolean
Queries if given date is a non-business day.static DateInterval
Creates an infinite interval until given end date.Modifier and TypeMethodDescriptionboolean
FixedCalendarInterval.abuts(ChronoInterval<PlainDate> other)
DayPartitionBuilder.addExclusion(Collection<PlainDate> dates)
Adds multiple exclusion dates.boolean
FixedCalendarInterval.contains(ChronoInterval<PlainDate> other)
static DateInterval
DateInterval.from(ChronoInterval<PlainDate> interval)
Converts an arbitrary date interval to an interval of this type.boolean
FixedCalendarInterval.isBefore(ChronoInterval<PlainDate> other)
static DateInterval
DateInterval.parse(CharSequence text, ChronoParser<PlainDate> startFormat, char separator, ChronoParser<PlainDate> endFormat, BracketPolicy policy, ParseLog status)
Interpretes given text as interval.static DateInterval
DateInterval.parse(CharSequence text, ChronoParser<PlainDate> parser, BracketPolicy policy)
Interpretes given text as interval.static DateInterval
DateInterval.parse(String text, ChronoParser<PlainDate> parser)
Interpretes given text as interval using a localized interval pattern.static DateInterval
DateInterval.parse(String text, ChronoParser<PlainDate> parser, String intervalPattern)
Interpretes given text as interval using given interval pattern.DateInterval.streamExcluding(Predicate<? super PlainDate> exclusion)
Obtains a stream iterating over every calendar date of the canonical form of this interval and applies given exclusion filter.ModifierConstructorDescriptionDayPartitionBuilder(Predicate<PlainDate> activeFilter)
Creates a new instance with given filter. -
Uses of PlainDate in net.time4j.sql
Modifier and TypeFieldDescriptionstatic JDBCAdapter<Date,PlainDate>
JDBCAdapter.SQL_DATE
Bridge between a JDBC-Date and the classPlainDate
. -
Uses of PlainDate in net.time4j.tz.model
-
Uses of PlainDate in net.time4j.xml
Modifier and TypeFieldDescriptionstatic XMLAdapter<XMLGregorianCalendar,PlainDate>
XMLAdapter.XML_DATE
Bridge between a XML-date according toxsd:date
and the typePlainDate
.
ChronoFormatter.ofDateStyle(FormatStyle, Locale)