Java Day in Month getNumberOfDaysInMonthes(int theyear)

Here you can find the source of getNumberOfDaysInMonthes(int theyear)

Description

get Number Of Days In Monthes

License

Open Source License

Declaration

private static int[] getNumberOfDaysInMonthes(int theyear) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static int[] getNumberOfDaysInMonthes(int theyear) {
        return new int[] { 31, getLeapYear(theyear), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
    }/*  w w  w . j  av  a 2s .c  om*/

    private static int getLeapYear(int theyear) {
        return ((theyear % 4 == 0 && theyear % 100 != 0) || theyear % 400 == 0) ? 29 : 28;
    }
}

Related

  1. getMonthDaysArray(int year)
  2. getMonthDayString(long l, boolean timezone, boolean formated)
  3. getMonthlyCronExpression(int minutes, int hours, int dayOfMonth)
  4. getMonthOfDayMark(int day)
  5. getNumberOfDaysInMonth(Integer year, Integer month)
  6. getNumDaysInMonth(String monthID, String yearID)
  7. getPreMonthDayStr(String curday)
  8. getStartMonthDayOfDate(String yyyyMM)
  9. is31DaysMonth(int month)