System.Win32.Time

Win32-2.3.1.0: A binding to part of the Win32 library

Copyright | (c) Esa Ilari Vuokko, 2006
License | BSD-style (see the file LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

System.Win32.Time

Description

A collection of FFI declarations for interfacing with Win32 Time API.

# Documentation

newtype FILETIME

Constructors

FILETIME DDWORD |

Instances

Eq FILETIME |
Methods (==) :: FILETIME -> FILETIME -> Bool (/=) :: FILETIME -> FILETIME -> Bool
Ord FILETIME |
Methods compare :: FILETIME -> FILETIME -> Ordering (<) :: FILETIME -> FILETIME -> Bool (<=) :: FILETIME -> FILETIME -> Bool (>) :: FILETIME -> FILETIME -> Bool (>=) :: FILETIME -> FILETIME -> Bool max :: FILETIME -> FILETIME -> FILETIME min :: FILETIME -> FILETIME -> FILETIME
Show FILETIME |
Methods showsPrec :: Int -> FILETIME -> ShowS Source show :: FILETIME -> String Source showList :: [FILETIME] -> ShowS Source
Storable FILETIME |
Methods sizeOf :: FILETIME -> Int Source alignment :: FILETIME -> Int Source peekElemOff :: Ptr FILETIME -> Int -> IO FILETIME Source pokeElemOff :: Ptr FILETIME -> Int -> FILETIME -> IO () Source peekByteOff :: Ptr b -> Int -> IO FILETIME Source pokeByteOff :: Ptr b -> Int -> FILETIME -> IO () Source peek :: Ptr FILETIME -> IO FILETIME Source poke :: Ptr FILETIME -> FILETIME -> IO () Source

data SYSTEMTIME

Constructors

SYSTEMTIME |
Fields wYear, wMonth, wDayOfWeek, wDay, wHour, wMinute, wSecond, wMilliseconds :: WORD

Instances

Eq SYSTEMTIME |
Methods (==) :: SYSTEMTIME -> SYSTEMTIME -> Bool (/=) :: SYSTEMTIME -> SYSTEMTIME -> Bool
Ord SYSTEMTIME |
Methods compare :: SYSTEMTIME -> SYSTEMTIME -> Ordering (<) :: SYSTEMTIME -> SYSTEMTIME -> Bool (<=) :: SYSTEMTIME -> SYSTEMTIME -> Bool (>) :: SYSTEMTIME -> SYSTEMTIME -> Bool (>=) :: SYSTEMTIME -> SYSTEMTIME -> Bool max :: SYSTEMTIME -> SYSTEMTIME -> SYSTEMTIME min :: SYSTEMTIME -> SYSTEMTIME -> SYSTEMTIME
Show SYSTEMTIME |
Methods showsPrec :: Int -> SYSTEMTIME -> ShowS Source show :: SYSTEMTIME -> String Source showList :: [SYSTEMTIME] -> ShowS Source
Storable SYSTEMTIME |
Methods sizeOf :: SYSTEMTIME -> Int Source alignment :: SYSTEMTIME -> Int Source peekElemOff :: Ptr SYSTEMTIME -> Int -> IO SYSTEMTIME Source pokeElemOff :: Ptr SYSTEMTIME -> Int -> SYSTEMTIME -> IO () Source peekByteOff :: Ptr b -> Int -> IO SYSTEMTIME Source pokeByteOff :: Ptr b -> Int -> SYSTEMTIME -> IO () Source peek :: Ptr SYSTEMTIME -> IO SYSTEMTIME Source poke :: Ptr SYSTEMTIME -> SYSTEMTIME -> IO () Source

data TIME_ZONE_INFORMATION

Constructors

TIME_ZONE_INFORMATION |
Fields tziBias :: LONG tziStandardName :: String tziStandardDate :: SYSTEMTIME tziStandardBias :: LONG tziDaylightName :: String tziDaylightDate :: SYSTEMTIME tziDaylightBias :: LONG

Instances

Eq TIME_ZONE_INFORMATION |
Methods (==) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool (/=) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool
Ord TIME_ZONE_INFORMATION |
Methods compare :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Ordering (<) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool (<=) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool (>) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool (>=) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool max :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION min :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION
Show TIME_ZONE_INFORMATION |
Methods showsPrec :: Int -> TIME_ZONE_INFORMATION -> ShowS Source show :: TIME_ZONE_INFORMATION -> String Source showList :: [TIME_ZONE_INFORMATION] -> ShowS Source
Storable TIME_ZONE_INFORMATION |
Methods sizeOf :: TIME_ZONE_INFORMATION -> Int Source alignment :: TIME_ZONE_INFORMATION -> Int Source peekElemOff :: Ptr TIME_ZONE_INFORMATION -> Int -> IO TIME_ZONE_INFORMATION Source pokeElemOff :: Ptr TIME_ZONE_INFORMATION -> Int -> TIME_ZONE_INFORMATION -> IO () Source peekByteOff :: Ptr b -> Int -> IO TIME_ZONE_INFORMATION Source pokeByteOff :: Ptr b -> Int -> TIME_ZONE_INFORMATION -> IO () Source peek :: Ptr TIME_ZONE_INFORMATION -> IO TIME_ZONE_INFORMATION Source poke :: Ptr TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> IO () Source

data TimeZoneId

Constructors

TzIdUnknown |
TzIdStandard |
TzIdDaylight |

Instances

Eq TimeZoneId |
Methods (==) :: TimeZoneId -> TimeZoneId -> Bool (/=) :: TimeZoneId -> TimeZoneId -> Bool
Ord TimeZoneId |
Methods compare :: TimeZoneId -> TimeZoneId -> Ordering (<) :: TimeZoneId -> TimeZoneId -> Bool (<=) :: TimeZoneId -> TimeZoneId -> Bool (>) :: TimeZoneId -> TimeZoneId -> Bool (>=) :: TimeZoneId -> TimeZoneId -> Bool max :: TimeZoneId -> TimeZoneId -> TimeZoneId min :: TimeZoneId -> TimeZoneId -> TimeZoneId
Show TimeZoneId |
Methods showsPrec :: Int -> TimeZoneId -> ShowS Source show :: TimeZoneId -> String Source showList :: [TimeZoneId] -> ShowS Source

c_GetSystemTime :: Ptr SYSTEMTIME -> IO ()

getSystemTime :: IO SYSTEMTIME

c_SetSystemTime :: Ptr SYSTEMTIME -> IO BOOL

setSystemTime :: SYSTEMTIME -> IO ()

c_GetSystemTimeAsFileTime :: Ptr FILETIME -> IO ()

getSystemTimeAsFileTime :: IO FILETIME

c_GetLocalTime :: Ptr SYSTEMTIME -> IO ()

getLocalTime :: IO SYSTEMTIME

c_SetLocalTime :: Ptr SYSTEMTIME -> IO BOOL

setLocalTime :: SYSTEMTIME -> IO ()

c_GetSystemTimeAdjustment :: Ptr DWORD -> Ptr DWORD -> Ptr BOOL -> IO BOOL

getSystemTimeAdjustment :: IO (Maybe (Int, Int))

getTickCount :: IO DWORD

c_SetSystemTimeAdjustment :: DWORD -> BOOL -> IO BOOL

setSystemTimeAdjustment :: Maybe Int -> IO ()

c_GetTimeZoneInformation :: Ptr TIME_ZONE_INFORMATION -> IO DWORD

getTimeZoneInformation :: IO (TimeZoneId, TIME_ZONE_INFORMATION)

c_SystemTimeToFileTime :: Ptr SYSTEMTIME -> Ptr FILETIME -> IO BOOL

systemTimeToFileTime :: SYSTEMTIME -> IO FILETIME

c_FileTimeToSystemTime :: Ptr FILETIME -> Ptr SYSTEMTIME -> IO BOOL

fileTimeToSystemTime :: FILETIME -> IO SYSTEMTIME

c_GetFileTime :: HANDLE -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> IO BOOL

getFileTime :: HANDLE -> IO (FILETIME, FILETIME, FILETIME)

c_SetFileTime :: HANDLE -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> IO BOOL

setFileTime :: HANDLE -> FILETIME -> FILETIME -> FILETIME -> IO ()

c_FileTimeToLocalFileTime :: Ptr FILETIME -> Ptr FILETIME -> IO BOOL

fileTimeToLocalFileTime :: FILETIME -> IO FILETIME

c_LocalFileTimeToFileTime :: Ptr FILETIME -> Ptr FILETIME -> IO BOOL

localFileTimeToFileTime :: FILETIME -> IO FILETIME

c_QueryPerformanceFrequency :: Ptr LARGE_INTEGER -> IO BOOL

queryPerformanceFrequency :: IO Integer

c_QueryPerformanceCounter :: Ptr LARGE_INTEGER -> IO BOOL

queryPerformanceCounter :: IO Integer

type GetTimeFormatFlags = DWORD

lOCALE_NOUSEROVERRIDE :: GetTimeFormatFlags

lOCALE_USE_CP_ACP :: GetTimeFormatFlags

tIME_NOMINUTESORSECONDS :: GetTimeFormatFlags

tIME_NOSECONDS :: GetTimeFormatFlags

tIME_NOTIMEMARKER :: GetTimeFormatFlags

c_GetTimeFormat :: LCID -> GetTimeFormatFlags -> Ptr SYSTEMTIME -> LPCTSTR -> LPTSTR -> CInt -> IO CInt

tIME_FORCE24HOURFORMAT :: GetTimeFormatFlags

getTimeFormat :: LCID -> GetTimeFormatFlags -> SYSTEMTIME -> String -> IO String