public static class RecurrenceFields.TIME_OF_DAY extends Object implements Serializable
The time of the day is defined in the format HH:MM:SS where
HH represents the hour part of the time.
Valid values are between 0 and 23.
MM represents the minute within the hour.
Valid values are between 0 and 59.
SS represents the seconds within the minutes.
Valid values are between 0 and 59.
An TIME_OF_DAY instance can be obtained via the
RecurrenceFields.TIME_OF_DAY.valueOf(int, int, int) method.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HOUR_VALUE
Maximum possible value for Hour part (HH).
|
static int |
MAX_MINUTE_VALUE
Maximum possible value for Minute part (MM).
|
static int |
MAX_SECOND_VALUE
Maximum possible value for Second part (SS).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHour()
Get the Hour part of this TIME_OF_DAY instance.
|
int |
getMinute()
Get the Minute part of this TIME_OF_DAY instance.
|
int |
getSecond()
Get the Second part of this TIME_OF_DAY instance.
|
void |
setHour(int hour)
Set the Hour part of this TIME_OF_DAY instance.
|
void |
setMinute(int minute)
Set the Minute part of this TIME_OF_DAY instance.
|
void |
setSecond(int second)
Set the second part of this TIME_OF_DAY instance.
|
String |
toString()
The string representation of this TIME_OF_DAY instance.
|
static RecurrenceFields.TIME_OF_DAY |
valueOf(int hour,
int minute,
int second)
A TIME_OF_DAY instance representing the time specified by
given values for hour, minute, and second.
|
public static final int MAX_HOUR_VALUE
public static final int MAX_MINUTE_VALUE
public static final int MAX_SECOND_VALUE
public static RecurrenceFields.TIME_OF_DAY valueOf(int hour, int minute, int second) throws IllegalArgumentException
hour - the hour part of the time.minute - the minutes within the hour.second - the seconds within the minute.IllegalArgumentException - if hour, minute and second
do not represent valid values.public int getHour()
public void setHour(int hour)
throws IllegalArgumentException
hour - the hour to be set. The value must be between 0 and 23.IllegalArgumentException - if the specified value is not
a valid value.public int getMinute()
public void setMinute(int minute)
throws IllegalArgumentException
minute - the minute to be set. The value must be
between 0 and 59.IllegalArgumentException - if the specified value is not
a valid value.public int getSecond()
public void setSecond(int second)
throws IllegalArgumentException
second - the second to be set.
The value must be between 0 and 59.IllegalArgumentException - if the specified value is not
a valid value.