summaryrefslogtreecommitdiff
path: root/time/ctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/ctime.c')
-rw-r--r--time/ctime.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/time/ctime.c b/time/ctime.c
index 1222614f29..fbfb61fcd6 100644
--- a/time/ctime.c
+++ b/time/ctime.c
@@ -26,3 +26,13 @@ ctime (const time_t *t)
In particular, ctime and asctime must yield the same pointer. */
return asctime (localtime (t));
}
+
+/* Return a string as returned by asctime which
+ is the representation of *T in that form. */
+char *
+__ctime64 (const __time64_t *t)
+{
+ /* Apply the same rule as ctime:
+ make ctime64 (t) is equivalent to asctime (localtime64 (t)). */
+ return asctime (__localtime64 (t));
+}