System.Win32.WindowsString.Time

Win32-2.14.0.0: A binding to Windows Win32 API.

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 | None
Language | Haskell2010

System.Win32.WindowsString.Time

Description

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

# Documentation

getTimeFormatEx :: Maybe WindowsString -> GetTimeFormatFlags -> Maybe SYSTEMTIME -> Maybe WindowsString -> IO String Source #

getTimeFormat :: LCID -> GetTimeFormatFlags -> Maybe SYSTEMTIME -> Maybe String -> IO WindowsString Source #

queryPerformanceCounter :: IO Integer Source #

queryPerformanceFrequency :: IO Integer Source #

getTickCount :: IO DWORD Source #

newtype FILETIME Source #

Constructors

FILETIME DDWORD |

#### Instances

Instances details

Storable FILETIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods sizeOf :: FILETIME -> Int # alignment :: FILETIME -> Int # peekElemOff :: Ptr FILETIME -> Int -> IO FILETIME # pokeElemOff :: Ptr FILETIME -> Int -> FILETIME -> IO () # peekByteOff :: Ptr b -> Int -> IO FILETIME # pokeByteOff :: Ptr b -> Int -> FILETIME -> IO () # peek :: Ptr FILETIME -> IO FILETIME # poke :: Ptr FILETIME -> FILETIME -> IO () #
Show FILETIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods showsPrec :: Int -> FILETIME -> ShowS # show :: FILETIME -> String # showList :: [FILETIME] -> ShowS #
Eq FILETIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods (==) :: FILETIME -> FILETIME -> Bool # (/=) :: FILETIME -> FILETIME -> Bool #
Ord FILETIME Source # |
Instance details Defined in System.Win32.Time.Internal 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 #

data SYSTEMTIME Source #

Constructors

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

#### Instances

Instances details

Storable SYSTEMTIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods sizeOf :: SYSTEMTIME -> Int # alignment :: SYSTEMTIME -> Int # peekElemOff :: Ptr SYSTEMTIME -> Int -> IO SYSTEMTIME # pokeElemOff :: Ptr SYSTEMTIME -> Int -> SYSTEMTIME -> IO () # peekByteOff :: Ptr b -> Int -> IO SYSTEMTIME # pokeByteOff :: Ptr b -> Int -> SYSTEMTIME -> IO () # peek :: Ptr SYSTEMTIME -> IO SYSTEMTIME # poke :: Ptr SYSTEMTIME -> SYSTEMTIME -> IO () #
Show SYSTEMTIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods showsPrec :: Int -> SYSTEMTIME -> ShowS # show :: SYSTEMTIME -> String # showList :: [SYSTEMTIME] -> ShowS #
Eq SYSTEMTIME Source # |
Instance details Defined in System.Win32.Time.Internal Methods (==) :: SYSTEMTIME -> SYSTEMTIME -> Bool # (/=) :: SYSTEMTIME -> SYSTEMTIME -> Bool #
Ord SYSTEMTIME Source # |
Instance details Defined in System.Win32.Time.Internal 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 #

data TIME_ZONE_INFORMATION Source #

Constructors

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

#### Instances

Instances details

Storable TIME_ZONE_INFORMATION Source # |
Instance details Defined in System.Win32.Time.Internal Methods sizeOf :: TIME_ZONE_INFORMATION -> Int # alignment :: TIME_ZONE_INFORMATION -> Int # peekElemOff :: Ptr TIME_ZONE_INFORMATION -> Int -> IO TIME_ZONE_INFORMATION # pokeElemOff :: Ptr TIME_ZONE_INFORMATION -> Int -> TIME_ZONE_INFORMATION -> IO () # peekByteOff :: Ptr b -> Int -> IO TIME_ZONE_INFORMATION # pokeByteOff :: Ptr b -> Int -> TIME_ZONE_INFORMATION -> IO () # peek :: Ptr TIME_ZONE_INFORMATION -> IO TIME_ZONE_INFORMATION # poke :: Ptr TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> IO () #
Show TIME_ZONE_INFORMATION Source # |
Instance details Defined in System.Win32.Time.Internal Methods showsPrec :: Int -> TIME_ZONE_INFORMATION -> ShowS # show :: TIME_ZONE_INFORMATION -> String # showList :: [TIME_ZONE_INFORMATION] -> ShowS #
Eq TIME_ZONE_INFORMATION Source # |
Instance details Defined in System.Win32.Time.Internal Methods (==) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool # (/=) :: TIME_ZONE_INFORMATION -> TIME_ZONE_INFORMATION -> Bool #
Ord TIME_ZONE_INFORMATION Source # |
Instance details Defined in System.Win32.Time.Internal 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 #

data TimeZoneId Source #

Constructors

TzIdUnknown |
TzIdStandard |
TzIdDaylight |

#### Instances

Instances details

Show TimeZoneId Source # |
Instance details Defined in System.Win32.Time.Internal Methods showsPrec :: Int -> TimeZoneId -> ShowS # show :: TimeZoneId -> String # showList :: [TimeZoneId] -> ShowS #
Eq TimeZoneId Source # |
Instance details Defined in System.Win32.Time.Internal Methods (==) :: TimeZoneId -> TimeZoneId -> Bool # (/=) :: TimeZoneId -> TimeZoneId -> Bool #
Ord TimeZoneId Source # |
Instance details Defined in System.Win32.Time.Internal 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 #

getSystemTime :: IO SYSTEMTIME Source #

setSystemTime :: SYSTEMTIME -> IO () Source #

getSystemTimeAsFileTime :: IO FILETIME Source #

getLocalTime :: IO SYSTEMTIME Source #

setLocalTime :: SYSTEMTIME -> IO () Source #

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

getLastInputInfo :: IO DWORD Source #

getIdleTime :: IO Integer Source #

setSystemTimeAdjustment :: Maybe Int -> IO () Source #

getTimeZoneInformation :: IO (TimeZoneId, TIME_ZONE_INFORMATION) Source #

systemTimeToFileTime :: SYSTEMTIME -> IO FILETIME Source #

fileTimeToSystemTime :: FILETIME -> IO SYSTEMTIME Source #

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

setFileTime :: HANDLE -> Maybe FILETIME -> Maybe FILETIME -> Maybe FILETIME -> IO () Source #

invalidFileTime :: FILETIME Source #

fileTimeToLocalFileTime :: FILETIME -> IO FILETIME Source #

localFileTimeToFileTime :: FILETIME -> IO FILETIME Source #

type GetTimeFormatFlags = DWORD Source #

lOCALE_NOUSEROVERRIDE :: GetTimeFormatFlags Source #

lOCALE_USE_CP_ACP :: GetTimeFormatFlags Source #

tIME_NOMINUTESORSECONDS :: GetTimeFormatFlags Source #

tIME_NOSECONDS :: GetTimeFormatFlags Source #

tIME_NOTIMEMARKER :: GetTimeFormatFlags Source #

tIME_FORCE24HOURFORMAT :: GetTimeFormatFlags Source #