public class Time
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
Time()
Create a new time.
|
Time(java.util.Date date)
Create a new time.
|
Time(int seconds,
int minutes,
int hours,
int weekday,
int monthday,
int month,
int year)
Create a new time.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object o)
Test for equality.
|
int |
getHours()
Get the hours.
|
int |
getMinutes()
Get the minutes.
|
int |
getMonth()
Get the month.
|
int |
getMonthday()
Get the monthday.
|
int |
getSeconds()
Get the seconds.
|
int |
getWeekday()
Get the weekday.
|
int |
getYear()
Get the year.
|
int |
hashCode()
Compute the hashcode.
|
void |
setHours(int hours)
Set the hours.
|
void |
setMinutes(int minutes)
Set the minutes.
|
void |
setMonth(int month)
Set the month.
|
void |
setMonthday(int monthday)
Set the monthday.
|
void |
setSeconds(int seconds)
Set the seconds.
|
void |
setWeekday(int weekday)
Set the weekday.
|
void |
setYear(int year)
Set the year.
|
public Time()
public Time(java.util.Date date)
public Time(int seconds, int minutes, int hours, int weekday, int monthday, int month, int year)
seconds
- The seconds.minutes
- The minutes.hours
- The hours.weekday
- The weekday.monthday
- The day in month.month
- The month.year
- The year.public int getSeconds()
public void setSeconds(int seconds)
seconds
- The seconds.public int getMinutes()
public void setMinutes(int minutes)
minutes
- The minutes.public int getHours()
public void setHours(int hours)
hours
- The hours.public int getWeekday()
public void setWeekday(int weekday)
weekday
- The weekday.public int getMonthday()
public void setMonthday(int monthday)
monthday
- The monthday.public int getMonth()
public void setMonth(int month)
month
- The month.public int getYear()
public void setYear(int year)
year
- The year.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to test.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object