summaryrefslogtreecommitdiff
path: root/common/rt/include/rt_time.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rt/include/rt_time.h')
-rw-r--r--common/rt/include/rt_time.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/rt/include/rt_time.h b/common/rt/include/rt_time.h
new file mode 100644
index 0000000..ea3ec1c
--- /dev/null
+++ b/common/rt/include/rt_time.h
@@ -0,0 +1,12 @@
+#ifndef __RT_TM_H__
+#define __RT_TM_H__
+
+struct tm *rt_localtime(time_t timep, struct tm *result);
+int rt_tms2str(uint64_t ts, const char *tm_form, char *date, size_t len);
+int rt_curr_tms2str(const char *tm_form, char *date, size_t len);
+
+u_int64_t rt_time_s(void);
+u_int64_t rt_time_ms(void);
+u_int64_t rt_time_ns();
+
+#endif