public final class Time extends Object
Constructor and Description |
---|
Time() |
Time(Date date) |
Time(int hours,
int minutes) |
Modifier and Type | Method and Description |
---|---|
int |
getHour()
Gets the hour.
|
int |
getMinutes()
Gets the minutes.
|
static Time |
parse(String value) |
void |
setHour(int hour)
Sets the hour.
|
void |
setMinutes(int minutes)
Sets the minutes.
|
String |
toString() |
public Time()
public Time(int hours, int minutes)
public Time(Date date)
public int getHour()
public void setHour(int hour)
hour
- new hourpublic int getMinutes()
public void setMinutes(int minutes)
minutes
- new minutespublic static Time parse(String value) throws ParseException
ParseException
Copyright © 2015 MMSOFT Design. All Rights Reserved.