Java Leap Year Check isLeapYear(int prolepticYear)

Here you can find the source of isLeapYear(int prolepticYear)

Description

Checks if the year is a leap year, according to the ISO proleptic calendar system rules.

License

Apache License

Declaration

private static boolean isLeapYear(int prolepticYear) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**// ww  w . j  a  va 2s.c o m
     * Checks if the year is a leap year, according to the ISO proleptic
     * calendar system rules.
     */
    private static boolean isLeapYear(int prolepticYear) {
        return ((prolepticYear & 3) == 0) && ((prolepticYear % 100) != 0 || (prolepticYear % 400) == 0);
    }
}

Related

  1. isJalaliLeapYear(int year)
  2. isJulianLeapYear(int normalizedJulianYear)
  3. isJulianLeapYear(int normalizedJulianYear)
  4. isLeapYear(final int year)
  5. isLeapYear(final int year)
  6. isLeapYear(int y)
  7. isLeapYear(int y)
  8. isLeapYear(int year)
  9. isLeapYear(int year)