public interface WallTime
Defines a wall time on an analogue clock conforming to ISO-8601
in the range T00:00:00 - T24:00:00.
Note: Implementations must document if they support the special value T24:00:00 or not. This value denotes midnight at the end of the day, that is midnight T00:00 at the begin of the following day.
| Modifier and Type | Method and Description |
|---|---|
int |
getHour()
Yields the hour of day.
|
int |
getMinute()
Liefert die Minute (der aktuellen Stunde).
|
int |
getNanosecond()
Yields the nanosecond.
|
int |
getSecond()
Yields the second of minute.
|
java.lang.String |
toString()
Yields a canonical representation in ISO-format
"Thh:mm" or "Thh:mm:ss".
|
int getHour()
Yields the hour of day.
0 - 24 (the value 24 is only
allowed if minute and second have the value 0)int getMinute()
Liefert die Minute (der aktuellen Stunde).
0 - 59int getSecond()
Yields the second of minute.
Given this context and the fact that this interface describes
an analogue clock without UTC reference, the special leapsecond
value 60 cannot be supported.
0 - 59int getNanosecond()
Yields the nanosecond.
Implementations which are not capable of nanosecond precision
will just yield 0 or another suitable rounded value.
0 - 999,999,999java.lang.String toString()
Yields a canonical representation in ISO-format "Thh:mm" or "Thh:mm:ss".
If this object also knows subseconds then a fractional part of second part is possible.
toString in class java.lang.Object