|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.autonomy.utilities.DateManager
This class takes a java Calendar object as input, and outputs the day, month and year so that
DateManager dm = new DateManager( Calendar.getInstance() );
out.println( dm.getYear() + "/" + dm.getMonth() + "/" + dm.getDay() );
YYYY/MM/DD
| Constructor Summary | |
DateManager(java.util.Calendar cInput)
Constuctor. |
|
| Method Summary | |
int |
getDay()
Return the day of month for this calendar as an int |
java.lang.String |
getDay(int nLength)
return the day of the month for this calendar as a string |
int |
getMonth()
Return the month of year for this calendar as an int |
java.lang.String |
getMonth(int nLength)
return the day of the month for this calendar as a string |
int |
getYear()
Return the year for this calendar as an int |
java.lang.String |
getYear(int nLength)
return the year for this calendar as a string |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DateManager(java.util.Calendar cInput)
cInput - Calendar instance from which date information is to be extracted| Method Detail |
public java.lang.String getDay(int nLength)
nLength - length of returned String, which will be filled with leading
zeros if it is too short. For example, on the 1dm.getDay(2);public java.lang.String getMonth(int nLength)
nLength - length of returned String, which will be filled with leading
zeros if it is too short. For example, if the month is January:dm.getMonth(2);public java.lang.String getYear(int nLength)
nLength - length of returned String, which will be filled with leading
zeros if it is too short. For example, if the year is 2002:dm.getYear(4);dm.getYear(2);public int getDay()
public int getMonth()
public int getYear()
|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||