summary refs log tree commit diff
path: root/src/tai_now.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tai_now.c')
-rw-r--r--src/tai_now.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tai_now.c b/src/tai_now.c
new file mode 100644
index 0000000..217ba75
--- /dev/null
+++ b/src/tai_now.c
@@ -0,0 +1,9 @@
+/* Public domain. */
+
+#include <time.h>
+#include "tai.h"
+
+void tai_now(struct tai *t)
+{
+  tai_unix(t,time((time_t *) 0));
+}