Class DateUtils

java.lang.Object
be.gaudry.model.date.DateUtils

public final class DateUtils extends Object
Helps to use dates. Provided by the broldev.core.model project.
Since:
1.0 Dec 24, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
Version:
1.0 Dec 24, 2008
Author:
Steph GAUDRY
  • Field Details

    • MILLIS_PER_DAY

      public static final long MILLIS_PER_DAY
      Number of milliseconds in a day
      See Also:
      Constant Field Values
  • Method Details

    • computeAge

      public static int computeAge(Date birthday)
      Compute age of someone. Assume birthday is before today.
      Parameters:
      birthday - Date of birth.
      Returns:
      age in years