summaryrefslogtreecommitdiff
path: root/src/libstddjb/timestamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/timestamp.c')
-rw-r--r--src/libstddjb/timestamp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/timestamp.c b/src/libstddjb/timestamp.c
new file mode 100644
index 0000000..7feb7c2
--- /dev/null
+++ b/src/libstddjb/timestamp.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+int timestamp (char *s)
+{
+ tain_t now ;
+ return timestamp_r(s, &now) ;
+}