add timegm function (inverse of gmtime), nonstandard
[musl] / src / time / timegm.c
diff --git a/src/time/timegm.c b/src/time/timegm.c
new file mode 100644 (file)
index 0000000..6d08917
--- /dev/null
@@ -0,0 +1,9 @@
+#define _GNU_SOURCE
+#include <time.h>
+
+#include "__time.h"
+
+time_t timegm(struct tm *tm)
+{
+       return __tm_to_time(tm);
+}