aboutsummaryrefslogtreecommitdiffstats
path: root/engmtime.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-26 17:30:12 +0100
committerMattias Andrée <maandree@kth.se>2021-02-26 17:30:12 +0100
commitdde83349da01f4b2d6a2e4182fc7a3cc627745f6 (patch)
tree171e9bfee1056d452174663c3b2ce5fcbf288e6b /engmtime.c
parentAdd tests (diff)
downloadlibsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.gz
libsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.bz2
libsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.xz
Add libsimple_[e[n]]{local,gm}time, remove dates from man pages, and add blank lines between sections in man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--engmtime.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/engmtime.c b/engmtime.c
new file mode 100644
index 0000000..c2bf6bf
--- /dev/null
+++ b/engmtime.c
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+void
+libsimple_engmtime(int status, struct tm *tm, struct timespec *ts)
+{
+ if (libsimple_gmtime(tm, ts))
+ enprintf(status, "libsimple_gmtime:");
+}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ /* TODO test */
+}
+
+#endif