public class TimeOfDay
extends java.lang.Object
| Constructor and Description |
|---|
TimeOfDay(int hour,
int minute,
int second)
Constructs a TimeOfDay object
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHour()
Gets the hour
|
int |
getMinute()
Gets the minute
|
int |
getSecond()
Gets the second
|
static TimeOfDay |
parse(java.lang.String timeStr)
Constructs a timezone-nonspecific DateOnly
|
java.lang.String |
toString() |
public TimeOfDay(int hour,
int minute,
int second)
hour - the hourminute - the minutesecond - the secondpublic static TimeOfDay parse(java.lang.String timeStr) throws java.text.ParseException
timeStr - time string of the form HH:mm:ssjava.text.ParseException - If there was a failure parsing the dateStrpublic int getHour()
public int getMinute()
public int getSecond()
public java.lang.String toString()
toString in class java.lang.Object