| 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.calendar.bahai |
Support for the Badi calendar.
|
| net.time4j.calendar.frenchrev |
Support for the French revolutionary calendar.
|
| net.time4j.calendar.hindu |
Support for the traditional Hindu calendar family.
|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| net.time4j.format.platform |
Temporal formatters which access the platform specific resources.
|
| net.time4j.range |
Interval support.
|
| net.time4j.tz.model |
Permits the construction of historized or rule-based timezones.
|
| Modifier and Type | Field and Description |
|---|---|
static AdjustableElement<Integer,PlainTime> |
PlainTime.CLOCK_HOUR_OF_AMPM
Element with the hour of half day in the value range
1-12
(dial on an analogue watch). |
static AdjustableElement<Integer,PlainTime> |
PlainTime.CLOCK_HOUR_OF_DAY
Element with the hour in the value range
1-24 (analogue
display). |
static ProportionalElement<Integer,PlainTime> |
PlainTime.DIGITAL_HOUR_OF_AMPM
Element with the digital hour of half day in the value range
0-11. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.DIGITAL_HOUR_OF_DAY
Element with the digital hour in the value range
0-23. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.HOUR_FROM_0_TO_24
Element with the full hour of day in the value range
0-24. |
static TemporalType<LocalTime,PlainTime> |
TemporalType.LOCAL_TIME
Bridge between the JSR-310-class
java.time.LocalTime and
the class PlainTime. |
static ProportionalElement<Long,PlainTime> |
PlainTime.MICRO_OF_DAY
Element with the day time in microseconds in the value range
0-86400000000. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.MICRO_OF_SECOND
Element with the microsecond in the value range
0-999999. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.MILLI_OF_DAY
Element with the day time in milliseconds in the value range
0-86400000. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.MILLI_OF_SECOND
Element with the millisecond in the value range
0-999. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.MINUTE_OF_DAY
Element with the minute of day in the value range
0-1440. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.MINUTE_OF_HOUR
Element with the minute of hour in the value range
0-59. |
static ProportionalElement<Long,PlainTime> |
PlainTime.NANO_OF_DAY
Element with the day time in nanoseconds in the value range
0-86400000000000. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.NANO_OF_SECOND
Element with the nanosecond in the value range
0-999999999. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.SECOND_OF_DAY
Element with the second of day in the value range
0-86400. |
static ProportionalElement<Integer,PlainTime> |
PlainTime.SECOND_OF_MINUTE
Element with the second of minute in the value range
0-59. |
| Modifier and Type | Method and Description |
|---|---|
static PlainTime |
PlainTime.from(LocalTime time)
Short cut for
TemporalType.LOCAL_TIME.translate(time). |
static PlainTime |
PlainTime.from(WallTime time)
Common conversion method.
|
PlainTime |
DayPeriod.getEnd(PlainTime context)
Determines the end of the day period which covers given clock time.
|
PlainTime |
DayPeriod.getStart(PlainTime context)
Determines the start of the day period which covers given clock time.
|
PlainTime |
PlainTimestamp.getWallTime()
Provides the wall time part.
|
PlainTime |
DayCycles.getWallTime()
Gets the rolled wall time.
|
static PlainTime |
PlainTime.midnightAtEndOfDay()
Yields midnight at the end of the day, that is midnight at
the start of the following day.
|
static PlainTime |
PlainTime.midnightAtStartOfDay()
Yields midnight at the start of the day.
|
PlainTime |
PlainTime.minus(long amount,
ClockUnit unit)
Subtracts given amount in units from this clock time and yields the result of subtraction.
|
static PlainTime |
PlainTime.nowInSystemTime()
Obtains the current clock time in system time.
|
static PlainTime |
PlainTime.of(BigDecimal decimal)
Creates a wall time by given decimal hour.
|
static PlainTime |
PlainTime.of(int hour)
Creates a wall time as full hour.
|
static PlainTime |
PlainTime.of(int hour,
int minute)
Creates a wall time with hour and minute.
|
static PlainTime |
PlainTime.of(int hour,
int minute,
int second)
Creates a wall time with hour, minute and second.
|
static PlainTime |
PlainTime.of(int hour,
int minute,
int second,
int nanosecond)
Creates a wall time with hour, minute, second and nanosecond.
|
static PlainTime |
PlainTime.parse(String text,
TemporalFormatter<PlainTime> parser)
Parses given text to an instance of this class.
|
PlainTime |
PlainTime.plus(long amount,
ClockUnit unit)
Adds given amount in units to this clock time and yields the result of addition.
|
PlainTime |
PlainTimestamp.toTime()
Synonym for
getWallTime(). |
PlainTime |
GeneralTimestamp.toTime()
Yields the time component.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeAxis<IsoTimeUnit,PlainTime> |
PlainTime.axis()
Provides a static access to the associated time axis respective
chronology which contains the chronological rules.
|
ElementOperator<PlainTime> |
WallTimeElement.roundedToFullHour()
Performs rounding to full hour in half rounding mode.
|
ElementOperator<PlainTime> |
WallTimeElement.roundedToFullMinute()
Performs rounding to full minute in half rounding mode.
|
ElementOperator<PlainTime> |
WallTimeElement.setToNextFullHour()
Adjusts to next full hour.
|
ElementOperator<PlainTime> |
WallTimeElement.setToNextFullMinute()
Adjusts to next full minute.
|
| Modifier and Type | Method and Description |
|---|---|
PlainTimestamp |
PlainDate.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
int |
PlainTime.compareTo(PlainTime time)
Defines a natural order which is solely based on the timeline
order.
|
PlainTime |
DayPeriod.getEnd(PlainTime context)
Determines the end of the day period which covers given clock time.
|
PlainTime |
DayPeriod.getStart(PlainTime context)
Determines the start of the day period which covers given clock time.
|
boolean |
PlainTime.isAfter(PlainTime time) |
boolean |
PlainTime.isBefore(PlainTime time) |
boolean |
PlainTime.isSimultaneous(PlainTime time) |
static <C extends CalendarVariant<C>> |
GeneralTimestamp.of(C calendarVariant,
PlainTime time)
Creates a new timestamp consisting of a calendar variant and a time component.
|
static <C extends Calendrical<?,C>> |
GeneralTimestamp.of(C calendrical,
PlainTime time)
Creates a new timestamp consisting of a general date and a time component.
|
static PlainTimestamp |
PlainTimestamp.of(PlainDate date,
PlainTime time)
Creates a new local timestamp with calendar date and wall time.
|
ElementOperator<?> |
WallTimeElement.setToNext(PlainTime value)
Moves a timestamp to the next given wall time and change the day
if necessary.
|
ElementOperator<?> |
WallTimeElement.setToNextOrSame(PlainTime value)
Moves a timestamp to the next or same given wall time and change
the day if necessary.
|
ElementOperator<?> |
WallTimeElement.setToPrevious(PlainTime value)
Moves a timestamp to the previous given wall time and change the day
backwards if necessary.
|
ElementOperator<?> |
WallTimeElement.setToPreviousOrSame(PlainTime value)
Moves a timestamp to the previous or same given wall time and
change the day backwards if necessary.
|
PlainTimestamp |
PlainTimestamp.with(PlainTime time)
Adjusts the wall time part of this timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
static DayPeriod |
DayPeriod.of(Map<PlainTime,String> timeToLabels)
Creates an instance based on user-defined data.
|
static PlainTime |
PlainTime.parse(String text,
TemporalFormatter<PlainTime> parser)
Parses given text to an instance of this class.
|
String |
PlainTime.print(TemporalFormatter<PlainTime> printer)
Creates a formatted output of this instance.
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoElement<PlainTime> |
EthiopianTime.ISO_TIME
Behaves like
COMPONENT and serves for conversion. |
| Modifier and Type | Method and Description |
|---|---|
PlainTime |
EthiopianTime.toISO()
Converts this instance to its ISO-analogy.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<ThaiSolarCalendar> |
ThaiSolarCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<PersianCalendar> |
PersianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<MinguoCalendar> |
MinguoCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JulianCalendar> |
JulianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JucheCalendar> |
JucheCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JapaneseCalendar> |
JapaneseCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<IndianCalendar> |
IndianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HistoricCalendar> |
HistoricCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HijriCalendar> |
HijriCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HebrewCalendar> |
HebrewCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given civil time.
|
GeneralTimestamp<D> |
EastAsianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<CopticCalendar> |
CopticCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
static EthiopianTime |
EthiopianTime.from(PlainTime time)
Converts given ISO-time to Ethiopian time.
|
| Modifier and Type | Method and Description |
|---|---|
static JulianDay |
JulianDay.ofEphemerisTime(CalendarDate date,
PlainTime time,
ZonalOffset offset)
Creates a Julian day on the time scale
TimeScale.TT,
sometimes also called Julian Ephemeris Day. |
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<BadiCalendar> |
BadiCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<FrenchRepublicanCalendar> |
FrenchRepublicanCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<HinduCalendar> |
HinduCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given civil time.
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoFormatter<PlainTime> |
Iso8601Format.BASIC_WALL_TIME
Defines the basic ISO-8601-format for a wall time with
hour, minute and optional second using the pattern
"HH[mm[ss[,SSSSSSSSS]]]".
|
static ChronoFormatter<PlainTime> |
Iso8601Format.EXTENDED_WALL_TIME
Defines the extended ISO-8601-format for a wall time
with hour, minute and optional second using the pattern
"HH[:mm[:ss[,SSSSSSSSS]]]".
|
| Modifier and Type | Method and Description |
|---|---|
static ChronoPrinter<PlainTime> |
Iso8601Format.ofBasicTime(IsoDecimalStyle decimalStyle,
ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time
in basic format "HHmm[ss[,SSSSSSSSS]]".
|
static ChronoPrinter<PlainTime> |
Iso8601Format.ofExtendedTime(IsoDecimalStyle decimalStyle,
ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time
in extended format "HH:mm[:ss[,SSSSSSSSS]]".
|
static ChronoFormatter<PlainTime> |
ChronoFormatter.ofTimePattern(String pattern,
PatternType type,
Locale locale)
Constructs a pattern-based formatter for clock time objects.
|
static ChronoFormatter<PlainTime> |
ChronoFormatter.ofTimeStyle(DisplayMode style,
Locale locale)
Deprecated.
|
static ChronoFormatter<PlainTime> |
ChronoFormatter.ofTimeStyle(FormatStyle style,
Locale locale)
Constructs a style-based formatter for plain time objects.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFormatter.Builder<T> |
ChronoFormatter.Builder.addDayPeriod(Map<PlainTime,String> timeToLabels)
Defines a text format for a custom day period.
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleFormatter<PlainTime> |
SimpleFormatter.ofTimePattern(String pattern,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain times.
|
static SimpleFormatter<PlainTime> |
SimpleFormatter.ofTimeStyle(DisplayMode style,
Locale locale)
Deprecated.
|
static SimpleFormatter<PlainTime> |
SimpleFormatter.ofTimeStyle(FormatStyle style,
Locale locale)
Constructs a style-based formatter for plain time objects.
|
| Modifier and Type | Method and Description |
|---|---|
static <I extends ChronoInterval<PlainTime>> |
IntervalTree.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.
|
| Modifier and Type | Method and Description |
|---|---|
PlainTime |
ClockInterval.getEndAsClockTime()
Yields the end time point.
|
PlainTime |
ClockInterval.getStartAsClockTime()
Yields the start time point.
|
PlainTime |
ClockInterval.random()
Obtains a random time within this interval.
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator<ChronoInterval<PlainTime>> |
ClockInterval.comparator()
Defines a comparator which sorts intervals first
by start boundary and then by length.
|
List<ChronoInterval<PlainTime>> |
DayPartitionRule.getPartitions(PlainDate date)
Obtains the partitions for given date if defined.
|
static IntervalCollection<PlainTime> |
IntervalCollection.onClockAxis()
Yields an empty instance on the walltime axis.
|
static <I extends ChronoInterval<PlainTime>> |
IntervalTree.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.
|
Stream<PlainTime> |
ClockInterval.stream(Duration<ClockUnit> duration)
Obtains a stream iterating over every clock time which is the result of addition of given duration
to start until the end of this interval is reached.
|
static Stream<PlainTime> |
ClockInterval.stream(Duration<ClockUnit> duration,
PlainTime start,
PlainTime end)
Obtains a stream iterating over every clock time which is the result of addition of given duration
to start until the end is reached.
|
| Modifier and Type | Method and Description |
|---|---|
static ClockInterval |
ClockInterval.between(PlainTime start,
PlainTime end)
Creates a finite half-open interval between given wall times.
|
static ClockInterval |
ClockInterval.since(PlainTime start)
Creates a finite half-open interval between given start time and
midnight at end of day (exclusive).
|
static Stream<PlainTime> |
ClockInterval.stream(Duration<ClockUnit> duration,
PlainTime start,
PlainTime end)
Obtains a stream iterating over every clock time which is the result of addition of given duration
to start until the end is reached.
|
static ClockInterval |
ClockInterval.until(PlainTime end)
Creates a finite half-open interval between midnight at start of day
and given end time.
|
| Modifier and Type | Method and Description |
|---|---|
static ClockInterval |
ClockInterval.from(ChronoInterval<PlainTime> interval)
Converts an arbitrary clock interval to an interval of this type.
|
static ClockInterval |
ClockInterval.parse(CharSequence text,
ChronoParser<PlainTime> parser,
BracketPolicy policy)
Interpretes given text as interval.
|
static ClockInterval |
ClockInterval.parse(CharSequence text,
ChronoParser<PlainTime> startFormat,
char separator,
ChronoParser<PlainTime> endFormat,
BracketPolicy policy,
ParseLog status)
Interpretes given text as interval.
|
static ClockInterval |
ClockInterval.parse(CharSequence text,
ChronoParser<PlainTime> startFormat,
char separator,
ChronoParser<PlainTime> endFormat,
BracketPolicy policy,
ParseLog status)
Interpretes given text as interval.
|
static ClockInterval |
ClockInterval.parse(String text,
ChronoParser<PlainTime> parser)
Interpretes given text as interval using a localized interval pattern.
|
static ClockInterval |
ClockInterval.parse(String text,
ChronoParser<PlainTime> parser,
String intervalPattern)
Interpretes given text as interval using given interval pattern.
|
| Modifier and Type | Method and Description |
|---|---|
PlainTime |
DaylightSavingRule.getTimeOfDay()
Determines the clock time when the switch from winter time to
summer time happens or vice versa.
|
| Modifier and Type | Method and Description |
|---|---|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofFixedDay(Month month,
int dayOfMonth,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a fixed day in given month.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofLastWeekday(Month month,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for the last day of week in given month.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayAfterDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week after the given reference date.
|
static GregorianTimezoneRule |
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month,
int dayOfMonth,
Weekday dayOfWeek,
PlainTime timeOfDay,
OffsetIndicator indicator,
int savings)
Creates a rule for a day of week before the given reference date.
|
Copyright © 2014–2021. All rights reserved.