|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Date
public class Date
Class designed to manage Date and Time. Note: some methods are deprecated.
Constructor Summary | |
---|---|
Date()
|
Method Summary | |
---|---|
boolean |
after(Date when)
Compare 2 Date objects to know if current Date object is after than parameter |
boolean |
before(Date when)
Compare 2 Date objects to know if current Date object is before than parameter |
int |
getDay()
Get Day |
int |
getHours()
Get Hours |
int |
getMinutes()
Get Minutes |
int |
getMonth()
Get Month |
int |
getSeconds()
Get Seconds |
int |
getYear()
Get year |
void |
setDay(int dd)
Set Day |
void |
setHours(int hh)
Set hours |
void |
setMinutes(int mm)
Set Minutes |
void |
setMonth(int mm)
Set Month |
void |
setSeconds(int ss)
Set Seconds |
void |
setYear(int yyyy)
Set Year |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Date()
Method Detail |
---|
public void setYear(int yyyy)
public int getYear()
public void setMonth(int mm)
mm
- the monthpublic int getMonth()
public void setDay(int dd)
dd
- the daypublic int getDay()
public void setHours(int hh)
hh
- the hourspublic int getHours()
public void setMinutes(int mm)
mm
- the minutespublic int getMinutes()
public void setSeconds(int ss)
ss
- the secondspublic int getSeconds()
public boolean before(Date when)
when
- the date to compare withpublic boolean after(Date when)
when
- the date to compare with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |