about summary refs log tree commit diff
path: root/src/time/gmtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/gmtime.c')
-rw-r--r--src/time/gmtime.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/time/gmtime.c b/src/time/gmtime.c
new file mode 100644
index 00000000..d4d5d1f1
--- /dev/null
+++ b/src/time/gmtime.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+#include "__time.h"
+
+struct tm *gmtime(const time_t *t)
+{
+	static struct tm tm;
+	__time_to_tm(*t, &tm);
+	tm.tm_isdst = 0;
+	return &tm;
+}