Uses of Interface
net.time4j.IsoDateUnit
Packages that use 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
Classes in net.time4j that implement IsoDateUnitModifier 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.Methods in net.time4j that return IsoDateUnitModifier 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.Methods in net.time4j that return types with arguments of type IsoDateUnitModifier 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
Classes in net.time4j.range with type parameters of type IsoDateUnitModifier 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.Methods in net.time4j.range that return IsoDateUnitModifier and TypeMethodDescriptiondefault IsoDateUnit
HolidayModel.businessDays()
Creates a special time unit for the counting of business days.Methods in net.time4j.range with parameters of type IsoDateUnitModifier 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.Method parameters in net.time4j.range with type arguments of type IsoDateUnitModifier 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.