| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| 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.ISO_HOUR
Element with the ISO-8601-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 |
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.
|
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 |
PlainTimestamp.toTime()
Synonym for
getWallTime(). |
| 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.
|
boolean |
PlainTime.isAfter(PlainTime time) |
boolean |
PlainTime.isBefore(PlainTime time) |
boolean |
PlainTime.isSimultaneous(PlainTime time) |
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.
|
Copyright © 2014–2015. All rights reserved.