Uses of Interface
net.time4j.IsoDateUnit
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Interval support.
-
Uses of IsoDateUnit in net.time4j
Modifier and TypeClassDescriptionclass
Represents the most common time units related to a standard ISO-8601-calendar.class
Represents a special unit for week-based years which are described by ISO-8601 and follow the week cycle from Monday to Sunday.Modifier and TypeMethodDescriptionCalendarUnit.atEndOfMonth()
Defines a variation of this unit which always sets the resulting date in additions and subtractions to the end of month even if there is no day overflow.CalendarUnit.keepingEndOfMonth()
Defines a variation of this unit which sets the resulting date in additions and subtractions to the end of month if and only if the original date is the last day of month.CalendarUnit.nextValidDate()
Defines a variation of this unit which resolves invalid intermediate dates in additions and subtractions to the first valid date after (the first day of following month).CalendarUnit.unlessInvalid()
Defines a variation of this unit which handles invalid intermediate dates in additions and subtractions by throwing aChronoException
.static IsoDateUnit
CalendarUnit.weekBasedYears()
Defines a special calendar unit for week-based years which are not bound to the calendar year but to the week cycle of a year preserving the day of week and (if possible) the week of year.CalendarUnit.withCarryOver()
Defines a variation of this unit which resolves invalid intermediate dates in additions and subtractions by transferring any day overflow to the following month.CalendarUnit.withJodaMetric()
Defines a variation of this unit which simulates the behaviour of Joda-Time.Modifier and TypeMethodDescriptionstatic TimeAxis<IsoDateUnit,PlainDate>
PlainDate.axis()
Provides a static access to the associated chronology on base of epoch days which contains the chronological rules.static TimeMetric<IsoDateUnit,Duration<IsoDateUnit>>
Duration.inWeekBasedUnits()
Constructs a metric in week-based years, weeks and days.static TimeMetric<IsoDateUnit,Duration<IsoDateUnit>>
Duration.inWeekBasedUnits()
Constructs a metric in week-based years, weeks and days.static Duration<IsoDateUnit>
Duration.parseWeekBasedPeriod(String period)
Parses a canonical representation with only week-based units (Y, W and D) to a calendrical duration where years are interpreted as week-based years with either 364 days (= 52 weeks) or 371 days (= 53 weeks). -
Uses of IsoDateUnit in net.time4j.range
Modifier and TypeClassDescriptionclass
SingleUnitTimeSpan<U extends IsoDateUnit,D extends SingleUnitTimeSpan<U,D>>
Represents a time span in one calendrical unit only.class
Years<U extends IsoDateUnit>
Represents a time span in gregorian or week-based years.Modifier and TypeMethodDescriptiondefault IsoDateUnit
HolidayModel.businessDays()
Creates a special time unit for the counting of business days.Modifier and TypeMethodDescriptionboolean
SingleUnitTimeSpan.contains(IsoDateUnit unit)
long
SingleUnitTimeSpan.getPartialAmount(IsoDateUnit unit)
DateInterval.move(long amount, IsoDateUnit unit)
Moves this interval along the time axis by given units.Modifier and TypeMethodDescriptionstatic 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.