Documentation of 'com.jstatcom.util.DateDiff' Java class
DateDiff
com.jstatcom.util

Class DateDiff



  • public class DateDiff
    extends java.lang.Object
    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

      Constructors 
      Constructor and Description
      DateDiff() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      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

      • DateDiff

        public DateDiff()
    • Method Detail

      • getDateDiff

        public static int getDateDiff(int calUnit,
                                      java.util.Date d1,
                                      java.util.Date d2)
        int diff = dd.getDateDiff(Calendar.WEEK_OF_YEAR, then, now);
        Parameters:
        calUnit -
        d1 -
        d2 -
        Returns:
        integer difference between two dates

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.