Class TimeOfDay

java.lang.Object
com.microsoft.graph.core.TimeOfDay

public class TimeOfDay extends Object
The time of day
  • Constructor Details

    • TimeOfDay

      public TimeOfDay(int hour, int minute, int second)
      Constructs a TimeOfDay object
      Parameters:
      hour - the hour
      minute - the minute
      second - the second
  • Method Details

    • parse

      @Nullable public static TimeOfDay parse(@Nonnull String timeStr) throws ParseException
      Constructs a timezone-nonspecific DateOnly
      Parameters:
      timeStr - time string of the form HH: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

      @Nonnull public String toString()
      Overrides:
      toString in class Object