コード例 #1
0
 /**
  * Provides the number of days in the month of the indicated year.
  *
  * @param year The year.
  * @param month The month of the year.
  * @return The number of days in the month.
  */
 public static int daysInMonth(int year, int month) {
   return DateTimeHelper.daysInMonth(year, month);
 }
コード例 #2
0
 /**
  * Indicates whether the year in question is a leap year.
  *
  * @param year The year.
  * @return {@code true} if {@code year} is a leap year and {@code false} if it is not.
  */
 public static boolean isLeapYear(int year) {
   return DateTimeHelper.isLeapYear(year);
 }