summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/time.h
diff options
context:
space:
mode:
authorDavid Sidrane <david_s5@nscdg.com>2015-04-07 16:37:35 -1000
committerDavid Sidrane <david_s5@nscdg.com>2015-04-07 16:37:35 -1000
commit6c18397707a17eb2097f4957fb4355a46398958d (patch)
treeaecadc00b426808bcdbd1d20f808a71f0de8cf6d /nuttx/include/nuttx/time.h
parent76cf23616b1eb151f04ffda19b375ede65639a5d (diff)
downloadpx4-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.h19
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: