Package com.microsoft.graph.core
Class TimeOfDay
java.lang.Object
com.microsoft.graph.core.TimeOfDay
The time of day
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TimeOfDay
public TimeOfDay(int hour, int minute, int second)Constructs a TimeOfDay object- Parameters:
hour- the hourminute- the minutesecond- the second
-
-
Method Details
-
parse
Constructs a timezone-nonspecific DateOnly- Parameters:
timeStr- time string of the formHH:mm:ss- Returns:
- the parsed DateOnly instance
- Throws:
ParseException- If there was a failure parsing the dateStr
-
getHour
public int getHour()Gets the hour- Returns:
- the hour
-
getMinute
public int getMinute()Gets the minute- Returns:
- the minute
-
getSecond
public int getSecond()Gets the second- Returns:
- the second
-
toString
-