diff options
author | David Sidrane <david_s5@nscdg.com> | 2015-04-07 16:37:35 -1000 |
---|---|---|
committer | David Sidrane <david_s5@nscdg.com> | 2015-04-07 16:37:35 -1000 |
commit | 6c18397707a17eb2097f4957fb4355a46398958d (patch) | |
tree | aecadc00b426808bcdbd1d20f808a71f0de8cf6d /nuttx/include/nuttx/time.h | |
parent | 76cf23616b1eb151f04ffda19b375ede65639a5d (diff) | |
download | px4-nuttx-6c18397707a17eb2097f4957fb4355a46398958d.tar.gz px4-nuttx-6c18397707a17eb2097f4957fb4355a46398958d.tar.bz2 px4-nuttx-6c18397707a17eb2097f4957fb4355a46398958d.zip |
Added CONFIG_TIME_EXTENDED to support tm_wday, tm_yday and tm_isdst for integration with 3rd party librariesupstream_to_greg
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: |