|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.util.DateDiff
public class DateDiff
Helper class for computing the difference of two dates in years, months, weeks or days. The estimates are precise for ranges up to 2000 years. The method takes care of corrections for leap seconds.
Constructor Summary | |
---|---|
DateDiff()
|
Method Summary | |
---|---|
static int |
getDateDiff(int calUnit,
java.util.Date d1,
java.util.Date d2)
int diff = dd.getDateDiff(Calendar.WEEK_OF_YEAR, then, now); |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateDiff()
Method Detail |
---|
public static int getDateDiff(int calUnit, java.util.Date d1, java.util.Date d2)
int diff = dd.getDateDiff(Calendar.WEEK_OF_YEAR, then, now);
calUnit
- d1
- d2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |