Rtos API example

Embed: (wiki syntax)

« Back to documentation index

mktime functions

mktime functions
[Platform]

Functions

bool _rtc_is_leap_year (int year)
 Compute if a year is a leap year or not.

Function Documentation

bool _rtc_is_leap_year ( int  year )

Compute if a year is a leap year or not.

Parameters:
yearThe year to test it shall be in the range [70:138]. Year 0 is translated into year 1900 CE.
Returns:
true if the year in input is a leap year and false otherwise.
Note:
- For use by the HAL only

Definition at line 66 of file mbed_mktime.c.