diff options
Diffstat (limited to 'nuttx/include/nuttx/time.h')
-rw-r--r-- | nuttx/include/nuttx/time.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/time.h b/nuttx/include/nuttx/time.h index 315c4431a..ae5f13ac8 100644 --- a/nuttx/include/nuttx/time.h +++ b/nuttx/include/nuttx/time.h @@ -101,6 +101,25 @@ int clock_isleapyear(int year); int clock_daysbeforemonth(int month, bool leapyear); /**************************************************************************** + * Function: clock_dayoftheweek + * + * Description: + * Get the day of the week + * + * Input Parameters: + * mday - The day of the month 1 - 31 + * month - The month of the year 1 - 12 + * year - the year including the 1900 + * + * Returned value: + * Zero based day of the week 0-6, 0 = Sunday, 1 = Monday... 6 = Saturday + * + ****************************************************************************/ +#if defined(CONFIG_TIME_EXTENDED) +int clock_dayoftheweek(int mday, int month, int year); +#endif + +/**************************************************************************** * Function: clock_calendar2utc * * Description: |