UNPKG

@technobuddha/library

Version:
14 lines (13 loc) 385 B
declare type Options = { /** Use the UTC timezone */ UTC?: boolean; }; /** * Determine if a year is a leap year * * @param input A date, or a year number * @param __namedParameters see {@link Options} * @returns true, if the specified year is a leap year */ export declare function isLeapYear(input: Date | number, { UTC }?: Options): boolean; export default isLeapYear;