]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add ctime(3)
authorDr. Michael Lauer <mickey@vanille-media.de>
Tue, 16 Jan 2018 16:06:31 +0000 (17:06 +0100)
committerDr. Michael Lauer <mickey@vanille-media.de>
Sat, 20 Jan 2018 13:54:18 +0000 (14:54 +0100)
vapi/posix.vapi

index 93e043c8ea1517b871e523fcd103336f43057ec6..b9ef0b0620ad5037115cf90cf839574708e05b9b 100644 (file)
@@ -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;