summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys/time.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-07-21 21:40:16 +0800
committerGitHub <[email protected]>2021-07-21 21:40:16 +0800
commite6467321c7a2413287a1700672d051b593ae3e24 (patch)
tree08ea02c2c2ef9b248e895bfc36d9baf90a5a45a4 /components/libc/compilers/common/sys/time.h
parent73bd7a7d66898c612380cbf64d1574c3b0764fdc (diff)
parent0f48449b5e326f4f66e443cbd1a0393ea00433e4 (diff)
Merge pull request #4876 from mysterywolf/tz
[libc][timezone] implement timezone APIs
Diffstat (limited to 'components/libc/compilers/common/sys/time.h')
-rw-r--r--components/libc/compilers/common/sys/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index bb1a9c96fd..4ca665c536 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -12,6 +12,7 @@
#define _SYS_TIME_H_
#include <rtconfig.h>
+#include <rtdef.h>
#include <time.h>
#ifdef __cplusplus
@@ -98,6 +99,12 @@ int clock_settime (clockid_t clockid, const struct timespec *tp);
int clock_time_to_tick(const struct timespec *time);
#endif /* RT_USING_POSIX */
+
+/* timezone APIs (Not standard LIBC APIs) */
+void rt_tz_set(rt_int8_t tz);
+rt_int8_t rt_tz_get(void);
+rt_int8_t rt_tz_is_dst(void);
+
#ifdef __cplusplus
}
#endif