summaryrefslogtreecommitdiff
path: root/nuttx/include/time.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-12 00:41:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-12 00:41:06 +0000
commit32498f8db8a4194609e334ea95b3de569bd92784 (patch)
treefda2dcfc65df604fa2d99cd12319fab8535a5ac1 /nuttx/include/time.h
parent489c0b453b4e44764516409b62cc73e2c6149b75 (diff)
downloadpx4-nuttx-32498f8db8a4194609e334ea95b3de569bd92784.tar.gz
px4-nuttx-32498f8db8a4194609e334ea95b3de569bd92784.tar.bz2
px4-nuttx-32498f8db8a4194609e334ea95b3de569bd92784.zip
Add gmtime and localtime
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1976 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/time.h')
-rw-r--r--nuttx/include/time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/include/time.h b/nuttx/include/time.h
index a7e2e6bb5..ce18c1350 100644
--- a/nuttx/include/time.h
+++ b/nuttx/include/time.h
@@ -143,7 +143,10 @@ EXTERN int clock_gettime(clockid_t clockid, struct timespec *tp);
EXTERN int clock_getres(clockid_t clockid, struct timespec *res);
EXTERN time_t mktime(struct tm *tp);
+EXTERN struct tm *gmtime(const time_t *clock);
EXTERN struct tm *gmtime_r(const time_t *clock, struct tm *result);
+
+#define localtime(c) gmtime(c)
#define localtime_r(c,r) gmtime_r(c,r)
EXTERN int timer_create(clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timerid);