1 #include <bindings.dsl.h>
4 -- |This module temporarily exists here, only because bindings-posix
5 -- currently doesn't have struct tm.
7 module Bindings.Posix.Time where
19 #field tm_isdst , CInt
24 #ccall clock , IO CClock
25 #ccall difftime , CTime -> CTime -> IO CDouble
26 #ccall gmtime , Ptr CTime -> IO (Ptr <tm>)
27 #ccall localtime , Ptr CTime -> IO (Ptr <tm>)
28 #ccall mktime , Ptr <tm> -> IO CTime
29 #ccall strftime , CString -> CSize -> CString -> Ptr <tm> -> IO CSize
30 #ccall time , Ptr CTime -> IO CTime