#include #include -- | module Bindings.Posix.Time where #strict_import import Bindings.Posix.Sys.Types import Bindings.Posix.Locale import Bindings.Posix.Signal #starttype struct tm #field tm_sec , CInt #field tm_min , CInt #field tm_hour , CInt #field tm_mday , CInt #field tm_mon , CInt #field tm_year , CInt #field tm_wday , CInt #field tm_yday , CInt #field tm_isdst , CInt #stoptype #starttype struct timespec #field tv_sec , CTime #field tv_nsec , CLong #stoptype #ifndef __MACH__ #starttype struct itimerspec #field it_interval , #field it_value , #stoptype #endif #num CLOCKS_PER_SEC #ifndef __MACH__ #num CLOCK_REALTIME #num TIMER_ABSTIME #endif #cinline getdate_err , IO CInt #ifndef __MACH__ #ccall clock_getres , -> Ptr -> IO CInt #ccall clock_gettime , -> Ptr -> IO CInt #ccall clock_nanosleep , -> CInt -> Ptr -> Ptr -> IO CInt #ccall clock_settime , -> Ptr -> IO CInt #endif #ccall difftime , -> -> IO CDouble #ccall getdate , CString -> IO (Ptr ) #ccall gmtime , Ptr -> IO (Ptr ) #ccall gmtime_r , Ptr -> Ptr -> IO (Ptr ) #ccall localtime , Ptr -> IO (Ptr ) #ccall localtime_r , Ptr -> Ptr -> IO (Ptr ) #ccall mktime , Ptr -> IO #ccall nanosleep , Ptr -> Ptr -> IO CInt #ccall strftime , CString -> CSize -> CString -> Ptr -> IO CSize -- #ccall strftime_l , CString -> CSize -> CString -> Ptr -> -> IO CSize #ccall strptime , CString -> CString -> Ptr -> IO CString #ccall time , Ptr -> IO #ifndef __MACH__ #ccall timer_create , -> Ptr -> Ptr -> IO CInt #ccall timer_delete , -> IO CInt #ccall timer_getoverrun , -> IO CInt #ccall timer_gettime , -> Ptr -> IO CInt #ccall timer_settime , -> CInt -> Ptr -> Ptr -> IO CInt #endif #ccall tzset , IO () #globalvar daylight , CInt #globalvar timezone , CLong #globalarray tzname , CString