Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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. |
Function Documentation
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.
- Parameters:
-
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.
- Returns:
- true if the year in input is a leap year and false otherwise.
- Note:
- For use by the HAL only
- Year 2100 is treated differently for devices with full leap year support and devices with partial leap year support. Devices with partial leap year support treats 2100 as a leap year.
Definition at line 69 of file mbed_mktime.c.
Generated on Tue Jul 12 2022 18:19:01 by
