| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.sql |
Bridge to JDBC.
|
| 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 ProportionalElement<Integer,PlainTime> |
PlainTime.ISO_HOUR
Deprecated.
Use
HOUR_FROM_0_TO_24 instead, will be removed in next major release |
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.
|
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.
|
static TemporalFormatter<PlainTime> |
PlainTime.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain times.
|
static <P extends ChronoPattern<P>> |
PlainTime.formatter(String formatPattern,
P patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain times.
|
static TemporalFormatter<PlainTime> |
PlainTime.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain times.
|
static <P extends ChronoPattern<P>> |
PlainTime.localFormatter(String formatPattern,
P patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain times.
|
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 <S> Chronology<S> |
PlainTime.axis(Converter<S,PlainTime> converter)
Provides a static access to the associated time axis using the foreign type S.
|
static DayPeriod |
DayPeriod.of(Map<PlainTime,String> timeToLabels)
Creates an instance based on user-defined data.
|
| Modifier and Type | Field and Description |
|---|---|
static JDBCAdapter<Time,PlainTime> |
JDBCAdapter.SQL_TIME
Bridge between a JDBC-Time and the class
PlainTime. |
Copyright © 2014–2017. All rights reserved.