summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Michael Lauer <mickey@vanille-media.de>2018-01-16 17:06:31 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-01-21 17:15:52 +0100
commit49658071a92c89e286dfd942f409042560719c30 (patch)
treea43faa32b7ca4d2f9dbea1280f1b229542de2233
parentfd1a4f62cbea19e44f2e6abed48eac5d68f786f6 (diff)
downloadvala-49658071a92c89e286dfd942f409042560719c30.tar.gz
posix: add ctime(3)
-rw-r--r--vapi/posix.vapi3
1 files changed, 3 insertions, 0 deletions
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 5afddbfe7..50b0045a3 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1768,6 +1768,9 @@ namespace Posix {
public clock_t ();
}
+ [CCode (cheader_filename = "time.h")]
+ public unowned string? ctime (ref time_t clock);
+
[CCode (cname = "struct tm", cheader_filename = "time.h", has_type_id = false)]
public struct tm {
public int tm_sec;