public class DateUtils
extends java.lang.Object
| Constructor and Description |
|---|
DateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasMonthPassed(int year,
int month)
Determines whether the input year-month pair has passed.
|
static boolean |
hasYearPassed(int year)
Determines whether or not the input year has already passed.
|
public static boolean hasYearPassed(int year)
year - the input year, as a two or four-digit integertrue if the year has passed, false otherwise.public static boolean hasMonthPassed(int year,
int month)
year - the input year, as a two or four-digit integermonth - the input monthtrue if the input time has passed, false otherwise.