IsCalendarLeapYear

Identifies whether the specified year is a leap year within the given era for the specific calendar.

BOOL IsCalendarLeapYear(CALID calId,UINT  year,UINT  era);

Parameters

  • calId
    [in] The calendar Calendar identifier to use for checking leap year.
  • year
    [in] The year to check.
  • era
    [in] The era to check.

Return Values

Returns TRUE if the specified year is a leap year.

Returns FALSE if the specified year is not a leap year.

Remarks

To get extended error information, call GetLastError, which can return the following error code:

  • ERROR_INVALID_PARAMETER

This function does not have an associated header or library file. Call LoadLibrary with the DLL name (Kernel32.dll) to obtain a module handle. Then call GetProcAddress with that module handle and this function name to get the address of this function.

This function is deprecated and will be unavailable in subsequent versions.

Requirements

**  Windows NT/2000/XP/Vista:** Windows Vista only.
**  Windows 95/98/Me:** Unsupported.
**  Implementation:** Implemented by Kernel32.dll.

See Also

National Language Support Functions