Functions | |
bool | _rtc_is_leap_year (int year, rtc_leap_year_support_t leap_year_support) |
Compute if a year is a leap year or not. More... | |
bool _rtc_is_leap_year | ( | int | year, |
rtc_leap_year_support_t | leap_year_support | ||
) |
Compute if a year is a leap year or not.
year | The year to test it shall be in the range [70:206]. Year 0 is translated into year 1900 CE. |
leap_year_support | use RTC_FULL_LEAP_YEAR_SUPPORT if RTC device is able to correctly detect all leap years in range [70:206] otherwise use RTC_4_YEAR_LEAP_YEAR_SUPPORT. |