Uses of Interface
net.time4j.engine.VariantSource
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Support for the traditional Hindu calendar family.
Defines the common generic schemes and interfaces of chronological
systems.
This package contains the expert-level format- and parse engine of Time4J.
Support for the historical ancestors of modern ISO-8601-standard.
Interval support.
-
Uses of VariantSource in net.time4j
Modifier and TypeClassDescriptionclass
Represents a general timestamp consisting of a general date and a 24-hour-clock time.Modifier and TypeMethodDescription<C extends CalendarVariant<C>>
GeneralTimestamp<C>ZonalClock.now(CalendarFamily<C> family, VariantSource variantSource, StartOfDay startOfDay)
Equivalent tonow(chronology, variantSource.getVariant(), startOfDay)
. -
Uses of VariantSource in net.time4j.calendar
Modifier and TypeClassDescriptionclass
Represents a small day adjustment to any islamic calendar variant.class
Describes islamic calendar variants based on simplistic deterministic algorithms.class
Represents the Hijri calendar used in many islamic countries.class
Represents the historic christian calendar used in most European countries.Modifier and TypeMethodDescriptionint
HijriCalendar.Unit.between(HijriCalendar start, HijriCalendar end, VariantSource variantSource)
Equivalent tobetween(start, end, variantSource.getVariant())
.static HijriCalendar
HijriCalendar.nowInSystemTime(VariantSource variantSource, StartOfDay startOfDay)
Obtains the current calendar date in system time.static HijriAdjustment
HijriAdjustment.of(VariantSource variantSource, int adjustment)
Defines a day adjustment of the given Hijri calendar variant.static HijriCalendar
HijriCalendar.of(VariantSource variantSource, int hyear, int hmonth, int hdom)
Creates a new instance of a Hijri calendar date in given variant.static HijriCalendar
HijriCalendar.of(VariantSource variantSource, int hyear, HijriMonth hmonth, int hdom)
Creates a new instance of a Hijri calendar date in given variant. -
Uses of VariantSource in net.time4j.calendar.hindu
Modifier and TypeClassDescriptionclass
The traditional Hindu calendar which exists in many regional variants throughout the Indian subcontinent.class
The Hindu calendar variants differ on various sets of calculations, month names and the choice of era. -
Uses of VariantSource in net.time4j.engine
Modifier and TypeClassDescriptionclass
CalendarVariant<D extends CalendarVariant<D>>
Represents an immutable calendar variant.Modifier and TypeMethodDescriptionstatic <T extends CalendarVariant<T>>
TCalendarDate.from(ChronoLocalDate threeten, CalendarFamily<T> target, VariantSource variantSource)
Converts the calendar date corresponding toChronoLocalDate
in given target chronology and variant.Chronology.getCalendarSystem(VariantSource variant)
Returns the calendar system for given calendar variant if available.CalendarFamily.getTimeLine(VariantSource variant)
Obtains an object which is useful for generic interval support.default <T extends CalendarVariant<T>>
TCalendarDate.transform(Class<T> target, VariantSource variantSource)
Converts this calendar date to the given target type based on the count of days relative to UTC epoch [1972-01-01].default <T extends CalendarVariant<T>>
TCalendarDate.transform(CalendarFamily<T> target, VariantSource variantSource)
Converts this calendar date to the given target chronology based on the count of days relative to UTC epoch [1972-01-01].CalendarVariant.withVariant(VariantSource variantSource)
Equivalent towithVariant(variantSource.getVariant())
. -
Uses of VariantSource in net.time4j.format.expert
Modifier and TypeMethodDescriptionChronoFormatter.withCalendarVariant(VariantSource variantSource)
Sets the calendar variant. -
Uses of VariantSource in net.time4j.history
Modifier and TypeClassDescriptionclass
Represents the chronological history of calendar reforms in a given region. -
Uses of VariantSource in net.time4j.range
Modifier and TypeMethodDescriptionstatic <D extends CalendarVariant<D>>
CalendarPeriod.Factory<D>CalendarPeriod.on(CalendarFamily<D> family, VariantSource variant)
Defines a timeline on which new generic calendar intervals can be created.