Here you can find the source of isGregorianLeapYear(int gregorianYear)
Parameter | Description |
---|---|
gregorianYear | a Gregorian calendar year |
public static final boolean isGregorianLeapYear(int gregorianYear)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww .j a va 2s. c om*/ * Returns whether the specified year is a leap year in the Gregorian * calendar system. * * @param gregorianYear * a Gregorian calendar year * @return true if the given year is a leap year in the Gregorian calendar * system. * @see CalendarDate#isLeapYear */ public static final boolean isGregorianLeapYear(int gregorianYear) { return (((gregorianYear % 4) == 0) && (((gregorianYear % 100) != 0) || ((gregorianYear % 400) == 0))); } }