Package com.microblink.blinkid.results.date

# Class DateUtils

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

public final class DateUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DateUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `isDatePassed(SimpleDate date)`
  Checks whether the given date has passed or not by comparing it with the current device time.
  `static int`
  `yearsPassedFrom(SimpleDate fromDate)`
  Number of full years passed from the given date.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.