Class DateUtils
java.lang.Object
com.microblink.blinkid.results.date.DateUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
yearsPassedFrom
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
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.
-