]> 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)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Jan 2018 16:15:30 +0000 (17:15 +0100)
vapi/posix.vapi

index 5afddbfe7f0804470dde5c64bf87ea9d9d12574b..50b0045a3f4e99a109b5600d6e109878a9018f1a 100644 (file)
@@ -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;