summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-07-18 14:34:35 +0800
committerMeco Man <[email protected]>2021-07-21 14:47:57 +0800
commit0f48449b5e326f4f66e443cbd1a0393ea00433e4 (patch)
tree0ae811a904fa8c83f1120cdd41b8bf5680baef7f /components/libc/compilers/common/sys
parent6c5546cc9c2103439dbe2e641f9f862868d2c9ab (diff)
[timezone] implement timezone
Diffstat (limited to 'components/libc/compilers/common/sys')
-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