Java Leap Year Check isJulianLeapYear(int normalizedJulianYear)

Here you can find the source of isJulianLeapYear(int normalizedJulianYear)

Description

Returns whether the specified year is a leap year in the Julian calendar system.

License

Apache License

Parameter

Parameter Description
normalizedJulianYear a normalized Julian calendar year

Return

true if the given year is a leap year in the Julian calendar system.

Declaration

public static final boolean isJulianLeapYear(int normalizedJulianYear) 

Method Source Code

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

public class Main {
    /**/*from  w  ww .j a va  2  s  .co  m*/
     * Returns whether the specified year is a leap year in the Julian calendar
     * system. The year number must be a normalized one (e.g., 45 B.C.E. is
     * 1-45).
     * 
     * @param normalizedJulianYear
     *            a normalized Julian calendar year
     * @return true if the given year is a leap year in the Julian calendar
     *         system.
     * @see CalendarDate#isLeapYear
     */
    public static final boolean isJulianLeapYear(int normalizedJulianYear) {
        return (normalizedJulianYear % 4) == 0;
    }
}

Related

  1. getMonthOfYear(int dayOfYear, boolean leap)
  2. isGregorianLeapYear(int gregorianYear)
  3. isGregorianLeapYear(int gregorianYear)
  4. isJalaliLeapYear(int year)
  5. isJulianLeapYear(int normalizedJulianYear)
  6. isLeapYear(final int year)
  7. isLeapYear(final int year)
  8. isLeapYear(int prolepticYear)
  9. isLeapYear(int y)