| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.calendar |
Support for various regional calendars.
|
| net.time4j.calendar.astro |
Contains classes related to calendrical astronomy.
|
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<ChronoDisplay,String> |
DayPeriod.approximate()
Equivalent to
approximate(TextWidth.WIDE, OutputContext.FORMAT). |
ChronoFunction<ChronoDisplay,String> |
DayPeriod.approximate(TextWidth width,
OutputContext outputContext)
Represents a flexible day period (in the afternoon, at night etc).
|
ChronoFunction<Moment,V> |
ZonalElement.at(ZonalOffset offset)
Creates a function which can query a
Moment at the
given timezone offset. |
ChronoFunction<Moment,V> |
ZonalElement.atUTC()
Equivalent to
at(ZonalOffset.UTC). |
ChronoFunction<ChronoDisplay,String> |
DayPeriod.fixed()
Equivalent to
fixed(TextWidth.WIDE, OutputContext.FORMAT). |
ChronoFunction<ChronoDisplay,String> |
DayPeriod.fixed(TextWidth width,
OutputContext outputContext)
Represents a fixed day period (am / pm / midnight / noon).
|
ChronoFunction<Moment,V> |
ZonalElement.in(Timezone tz)
Creates a function which can query a
Moment in the
given timezone. |
ChronoFunction<Moment,V> |
ZonalElement.inStdTimezone()
Creates a function which can query a
Moment in the
system timezone. |
ChronoFunction<Moment,V> |
ZonalElement.inTimezone(TZID tzid)
Creates a function which can query a
Moment in the
given timezone. |
ChronoFunction<ChronoEntity<?>,BigDecimal> |
ProportionalElement.ratio()
Defines a query which interpretes the value of this element as
proportional rational number within the range between minimum and
maximum.
|
| Modifier and Type | Method and Description |
|---|---|
static ChronoFunction<Moment,Optional<HebrewTime>> |
HebrewTime.at(SolarTime geoLocation)
Obtains the Hebrew time dependent on given moment and location related to solar time.
|
static ChronoFunction<Moment,HebrewTime> |
HebrewTime.at(TZID tzid)
Obtains the simplified Hebrew time dependent on given moment and a 24-hour-fixed scale.
|
ChronoFunction<CalendarDate,List<PlainDate>> |
HebrewAnniversary.inGregorianYear(int gyear)
Determines the input calendar date as original event date and determines the anniversary days of this event
in given gregorian year.
|
ChronoFunction<CalendarDate,HebrewCalendar> |
HebrewAnniversary.inHebrewYear(int hyear)
Determines the input calendar date as original event date and determines the anniversary day of this event
in given hebrew year.
|
| Modifier and Type | Method and Description |
|---|---|
static ChronoFunction<Moment,PlainTimestamp> |
SolarTime.apparentAt(ZonalOffset offset)
Determines the apparent solar time of any moment at given local time zone offset.
|
static ChronoFunction<Moment,PlainTimestamp> |
SolarTime.apparentAt(ZonalOffset offset,
String calculator)
Determines the apparent solar time of any moment at given local time zone offset.
|
static ChronoFunction<Moment,PlainTimestamp> |
SolarTime.onAverage(ZonalOffset offset)
Determines the mean solar time of any moment at given local time zone offset.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.sunrise()
Calculates the moment of sunrise at the location of this instance.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.sunrise(Twilight twilight)
Calculates the time of given twilight at sunrise and the location of this instance.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.sunset()
Calculates the moment of sunset at the location of this instance.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.sunset(Twilight twilight)
Calculates the time of given twilight at sunset and the location of this instance.
|
ChronoFunction<CalendarDate,SolarTime.Sunshine> |
SolarTime.sunshine(TZID tzid)
Queries a given calendar date for its associated sunshine data.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.timeOfShadowAfterNoon(double objectHeight,
double shadowLength)
Calculates the moment after noon when the given shadow occurs on given date
at the location of this instance.
|
ChronoFunction<CalendarDate,Optional<Moment>> |
SolarTime.timeOfShadowBeforeNoon(double objectHeight,
double shadowLength)
Calculates the moment before noon when the given shadow occurs on given date
at the location of this instance.
|
ChronoFunction<CalendarDate,Moment> |
SolarTime.transitAtMidnight()
Calculates the moment of midnight at the location of this instance (lowest position of sun).
|
ChronoFunction<CalendarDate,Moment> |
SolarTime.transitAtNoon()
Calculates the moment of noon at the location of this instance (solar transit).
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends UnixTime> |
StartOfDay.definedBy(ChronoFunction<CalendarDate,Optional<T>> event)
Obtains the start of a calendar day as determined by given date function.
|
<R> R |
ChronoEntity.get(ChronoFunction<? super T,R> function)
Lets given query evaluate this entity.
|
| Modifier and Type | Method and Description |
|---|---|
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.lastBusinessDay()
Queries the last business day in an arbitrary date interval.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
IsoInterval.get(ChronoFunction<ChronoInterval<T>,R> function)
Lets given query evaluate this interval.
|
Copyright © 2014–2021. All rights reserved.