Java Leap Year Check isGregorianLeapYear(int gregorianYear)

Here you can find the source of isGregorianLeapYear(int gregorianYear)

Description

is Gregorian Leap Year

License

Mozilla Public License

Declaration

public static final boolean isGregorianLeapYear(int gregorianYear) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

public class Main {
    public static final boolean isGregorianLeapYear(int gregorianYear) {
        return (((gregorianYear % 4) == 0) && (((gregorianYear % 100) != 0) || ((gregorianYear % 400) == 0)));
    }//from w  ww .j  a va2s. c  o  m
}

Related

  1. getLeapYear(int theyear)
  2. getMonthOfYear(int dayOfYear, boolean leap)
  3. isGregorianLeapYear(int gregorianYear)
  4. isJalaliLeapYear(int year)
  5. isJulianLeapYear(int normalizedJulianYear)
  6. isJulianLeapYear(int normalizedJulianYear)