|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
shared.MyDate
This class extends the standard Date class and customizes the toString method. This class also contains some helper methods to make the life easier.
| Constructor Summary | |
MyDate(java.util.Date date)
|
|
| Method Summary | |
static java.lang.String |
addZerosToFront(int iValue,
int iWantedLength)
This method adds zeros in front of a number and returns it as a string. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MyDate(java.util.Date date)
| Method Detail |
public java.lang.String toString()
Object.toString()
public static java.lang.String addZerosToFront(int iValue,
int iWantedLength)
iValue - Specifies the number to add zeros to.iWantedLength - Specifies the wanted max length of the string.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||