TimeOfDay Class

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

public class TimeOfDay

The time of day

Constructor Summary

Constructor Description
TimeOfDay(int hour, int minute, int second)

Constructs a TimeOfDay object

Method Summary

Modifier and Type Method and Description
int getHour()

Gets the hour

int getMinute()

Gets the minute

int getSecond()

Gets the second

static TimeOfDay parse(String timeStr)

Constructs a timezone-nonspecific DateOnly

java.lang.String toString()

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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

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

parse

public static TimeOfDay parse(String timeStr)

Constructs a timezone-nonspecific DateOnly

Parameters:

timeStr - time string of the form HH:mm:ss

Returns:

the parsed DateOnly instance

Throws:

java.text.ParseException

toString

public String toString()

Overrides:

TimeOfDay.toString()

Applies to