summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Michael Lauer <mickey@vanille-media.de>2018-01-16 17:06:31 +0100
committerDr. Michael Lauer <mickey@vanille-media.de>2018-01-20 14:54:18 +0100
commit2ae0ebc8aa27ea4bf0a264432e7a64c8f9fe258b (patch)
tree4cf59925ca08061135643aac57904f01b5e03946
parent43df5fb299919d5db7ae590683c5a58c3105f37d (diff)
downloadvala-2ae0ebc8aa27ea4bf0a264432e7a64c8f9fe258b.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 93e043c8e..b9ef0b062 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1954,6 +1954,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;