X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Bindings%2FCoreServices%2FCarbonCore%2FUTCUtils.hsc;fp=Bindings%2FCoreServices%2FCarbonCore%2FUTCUtils.hsc;h=0115a5251eae28aeeec3647ba8800c75c0687074;hb=3082e8da09e36e40c8f2f9ae238b489ccf2479c5;hp=0000000000000000000000000000000000000000;hpb=40230c2d18a8a925f22add7f00e6ac7d98e2d5b3;p=bindings-CarbonCore.git diff --git a/Bindings/CoreServices/CarbonCore/UTCUtils.hsc b/Bindings/CoreServices/CarbonCore/UTCUtils.hsc new file mode 100644 index 0000000..0115a52 --- /dev/null +++ b/Bindings/CoreServices/CarbonCore/UTCUtils.hsc @@ -0,0 +1,35 @@ +#include +#include + +module Bindings.CoreServices.CarbonCore.UTCUtils where +#strict_import +import Bindings.CoreServices.CarbonCore.MacTypes + +#num kUTCDefaultOptions + +#starttype struct UTCDateTime +# field highSeconds, +# field lowSeconds , +# field fraction , +#stoptype +#synonym_t UTCDateTimePtr , Ptr +#synonym_t UTCDateTimeHandle, Ptr + +#starttype struct LocalDateTime +# field highSeconds, +# field lowSeconds , +# field fraction , +#stoptype +#synonym_t LocalDateTimePtr , Ptr +#synonym_t LocalDateTimeHandle, Ptr + +#if !__LP64__ +# ccall ConvertLocalTimeToUTC , -> Ptr -> IO +# ccall ConvertUTCToLocalTime , -> Ptr -> IO +# ccall ConvertUTCToLocalDateTime, Ptr -> Ptr -> IO +# ccall ConvertLocalToUTCDateTime, Ptr -> Ptr -> IO +# ccall GetUTCDateTime , Ptr -> -> IO +# ccall SetUTCDateTime , Ptr -> -> IO +# ccall GetLocalDateTime , Ptr -> -> IO +# ccall SetLocalDateTime , Ptr -> -> IO +#endif \ No newline at end of file