Package com.independentsoft.graph
Class Time
java.lang.Object
com.independentsoft.graph.Time
Represents the transition time of day to and from standard time and daylight saving time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetHour()Gets a hour.intGets a minute.intGets a second.voidsetHour(int hour)Sets a hour.voidsetMinute(int minute)Sets a minute.voidsetSecond(int second)Sets a second.toString()Converts the value of the current Time object to its equivalent string representation.
-
Constructor Details
-
Time
public Time()Initializes a new instance of the Time class. -
Time
public Time(int hour)Initializes a new instance of the Time class.- Parameters:
hour- the hour
-
Time
public Time(int hour, int minute)Initializes a new instance of the Time class.- Parameters:
hour- the hourminute- the minute
-
Time
public Time(int hour, int minute, int second)Initializes a new instance of the Time class.- Parameters:
hour- the hourminute- the minutesecond- the second
-
-
Method Details
-
toString
Converts the value of the current Time object to its equivalent string representation. -
getHour
public int getHour()Gets a hour.- Returns:
- the hour
-
setHour
public void setHour(int hour)Sets a hour.- Parameters:
hour- the new hour
-
getMinute
public int getMinute()Gets a minute.- Returns:
- the minute
-
setMinute
public void setMinute(int minute)Sets a minute.- Parameters:
minute- the new minute
-
getSecond
public int getSecond()Gets a second.- Returns:
- the second
-
setSecond
public void setSecond(int second)Sets a second.- Parameters:
second- the new second
-