summaryrefslogtreecommitdiff
path: root/src/time/ctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/ctime.c')
-rw-r--r--src/time/ctime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/time/ctime.c b/src/time/ctime.c
new file mode 100644
index 00000000..185ec554
--- /dev/null
+++ b/src/time/ctime.c
@@ -0,0 +1,6 @@
+#include <time.h>
+
+char *ctime(const time_t *t)
+{
+ return asctime(localtime(t));
+}