X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Bindings%2FAPR%2FTime.hsc;fp=Bindings%2FAPR%2FTime.hsc;h=9c7032286460fa27f6037f8f320ce97fc4981410;hb=01c3e8477bab59fb6f6c23fcf98c4b7a1709e3f1;hp=0000000000000000000000000000000000000000;hpb=eea1d259f1beb325e569fd01b48ef3ab14db1897;p=bindings-apr.git diff --git a/Bindings/APR/Time.hsc b/Bindings/APR/Time.hsc new file mode 100644 index 0000000..9c70322 --- /dev/null +++ b/Bindings/APR/Time.hsc @@ -0,0 +1,63 @@ +#include +#include + +module Bindings.APR.Time where +#strict_import +import Bindings.APR +import Bindings.APR.ErrNo +import Bindings.APR.Pools + +-- Isn't there a better way than this? +#pointer apr_month_snames +#pointer apr_day_snames + +#integral_t apr_time_t +#pointer APR_TIME_T_FMT + +#integral_t apr_interval_time_t +#integral_t apr_short_interval_time_t + +#num APR_USEC_PER_SEC + +#cinline apr_time_sec , -> IO +#cinline apr_time_usec, -> IO +#cinline apr_time_msec, -> IO +#cinline apr_time_as_msec , -> IO +#cinline apr_time_from_sec, -> IO +#cinline apr_time_make, -> -> IO + +#ccall apr_time_now, IO + +#starttype struct apr_time_exp_t +# field tm_usec, +# field tm_sec , +# field tm_min , +# field tm_hour, +# field tm_mday, +# field tm_mon , +# field tm_year, +# field tm_wday, +# field tm_yday, +# field tm_isdst , +# field tm_gmtoff, +#stoptype + +#ccall apr_time_ansi_put, Ptr -> CTime -> IO + +#ccall apr_time_exp_tz , Ptr -> -> -> IO +#ccall apr_time_exp_gmt, Ptr -> -> IO +#ccall apr_time_exp_lt , Ptr -> -> IO +#ccall apr_time_exp_get , Ptr -> Ptr -> IO +#ccall apr_time_exp_gmt_get, Ptr -> Ptr -> IO + +#ccall apr_sleep, -> IO () + +#num APR_RFC822_DATE_LEN +#ccall apr_rfc822_date, Ptr CChar -> -> IO + +#num APR_CTIME_LEN +#ccall apr_ctime, Ptr CChar -> -> IO + +#ccall apr_strftime, Ptr CChar -> Ptr -> -> Ptr CChar -> Ptr -> IO + +#ccall apr_time_clock_hires, Ptr -> IO ()