54 #ifndef __INCLUDE_TINYARA_TIME_H 55 #define __INCLUDE_TINYARA_TIME_H 61 #include <tinyara/config.h> 72 #ifndef CONFIG_GREGORIAN_TIME 73 #undef CONFIG_JULIAN_TIME 75 #define JD_OF_EPOCH 2440588 77 #ifdef CONFIG_JULIAN_TIME 78 #define GREG_DUTC -141427 79 #define GREG_YEAR 1582 94 #define EXTERN extern "C" EXTERN time_t clock_calendar2utc(int year, int month, int day)
Conversion Calendar/UTC.
EXTERN int clock_isleapyear(int year)
Return true if the specified year is a leap year.
EXTERN int clock_daysbeforemonth(int month, bool leapyear)
Get the number of days that occurred before the beginning of the month.