|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.sys.DateChange
A DateChange object is used when calculating differences between two Dates or when adding/subtracting time periods to an existing date.
| Field Summary | |
int |
days
The number of days difference. |
int |
months
The number of months difference. |
int |
totalDays
If this is used, then the years, months and days values are ignored, when passing this Object as a parameter for changing a date. |
int |
years
The number of years difference. |
| Constructor Summary | |
DateChange()
|
|
| Method Summary | |
boolean |
isNegative()
This is only valid when used to calculate the difference between two dates. |
DateChange |
set(int totalDays)
Set the totalDays. |
DateChange |
set(int years,
int months,
int days)
Set the years, months and days. |
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public int years
public int months
public int days
public int totalDays
| Constructor Detail |
public DateChange()
| Method Detail |
public boolean isNegative()
public DateChange set(int years,
int months,
int days)
public DateChange set(int totalDays)
public String toString()
Object
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||