Class DateUtils

java.lang.Object
com.microblink.blinkid.results.date.DateUtils

public final class DateUtils extends Object
  • Constructor Details

    • DateUtils

      public DateUtils()
  • Method Details

    • yearsPassedFrom

      public static int yearsPassedFrom(@NonNull SimpleDate fromDate)
      Number of full years passed from the given date. It is calculated as difference between now and the given date. Now is the current time on the device.
      Returns:
      number of full years passed from the given date.
    • isDatePassed

      public static boolean isDatePassed(@NonNull SimpleDate date)
      Checks whether the given date has passed or not by comparing it with the current device time.
      Returns:
      true if the date has passed, false otherwise.