glib-0.13.5.0: Binding to the GLIB library for Gtk2Hs.

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

System.Glib.GDateTime

Description

# Documentation

type GTimeValPart = CLong Source #

data GTimeVal Source #

Constructors

GTimeVal |

Fields

- gTimeValSec :: GTimeValPart
- gTimeValUSec :: GTimeValPart

Instances

Eq GTimeVal Source # |
Methods (==) :: GTimeVal -> GTimeVal -> Bool # (/=) :: GTimeVal -> GTimeVal -> Bool #
Ord GTimeVal Source # |
Methods compare :: GTimeVal -> GTimeVal -> Ordering # (<) :: GTimeVal -> GTimeVal -> Bool # (<=) :: GTimeVal -> GTimeVal -> Bool # (>) :: GTimeVal -> GTimeVal -> Bool # (>=) :: GTimeVal -> GTimeVal -> Bool # max :: GTimeVal -> GTimeVal -> GTimeVal # min :: GTimeVal -> GTimeVal -> GTimeVal #
Storable GTimeVal Source # |
Methods sizeOf :: GTimeVal -> Int # alignment :: GTimeVal -> Int # peekElemOff :: Ptr GTimeVal -> Int -> IO GTimeVal # pokeElemOff :: Ptr GTimeVal -> Int -> GTimeVal -> IO () # peekByteOff :: Ptr b -> Int -> IO GTimeVal # pokeByteOff :: Ptr b -> Int -> GTimeVal -> IO () # peek :: Ptr GTimeVal -> IO GTimeVal # poke :: Ptr GTimeVal -> GTimeVal -> IO () #

gGetCurrentTime :: IO GTimeVal Source #

gUSleep :: GTimeValPart -> IO () Source #

gTimeValAdd :: GTimeVal -> GTimeValPart -> GTimeVal Source #

gTimeValFromISO8601 :: GlibString string => string -> Maybe GTimeVal Source #

gTimeValToISO8601 :: GlibString string => GTimeVal -> string Source #

newtype GDate Source #

Constructors

GDate |

Fields

- gDateJulianDay :: GDateJulianDay

Instances

Eq GDate Source # |
Methods (==) :: GDate -> GDate -> Bool # (/=) :: GDate -> GDate -> Bool #
Ord GDate Source # |
Methods compare :: GDate -> GDate -> Ordering # (<) :: GDate -> GDate -> Bool # (<=) :: GDate -> GDate -> Bool # (>) :: GDate -> GDate -> Bool # (>=) :: GDate -> GDate -> Bool # max :: GDate -> GDate -> GDate # min :: GDate -> GDate -> GDate #
Storable GDate Source # |
Methods sizeOf :: GDate -> Int # alignment :: GDate -> Int # peekElemOff :: Ptr GDate -> Int -> IO GDate # pokeElemOff :: Ptr GDate -> Int -> GDate -> IO () # peekByteOff :: Ptr b -> Int -> IO GDate # pokeByteOff :: Ptr b -> Int -> GDate -> IO () # peek :: Ptr GDate -> IO GDate # poke :: Ptr GDate -> GDate -> IO () #

data GDateDay Source #

Instances

Bounded GDateDay Source # |
Methods minBound :: GDateDay # maxBound :: GDateDay #
Eq GDateDay Source # |
Methods (==) :: GDateDay -> GDateDay -> Bool # (/=) :: GDateDay -> GDateDay -> Bool #
Ord GDateDay Source # |
Methods compare :: GDateDay -> GDateDay -> Ordering # (<) :: GDateDay -> GDateDay -> Bool # (<=) :: GDateDay -> GDateDay -> Bool # (>) :: GDateDay -> GDateDay -> Bool # (>=) :: GDateDay -> GDateDay -> Bool # max :: GDateDay -> GDateDay -> GDateDay # min :: GDateDay -> GDateDay -> GDateDay #

data GDateMonth Source #

Instances

Bounded GDateMonth Source # |
Methods minBound :: GDateMonth # maxBound :: GDateMonth #
Enum GDateMonth Source # |
Methods succ :: GDateMonth -> GDateMonth # pred :: GDateMonth -> GDateMonth # toEnum :: Int -> GDateMonth # fromEnum :: GDateMonth -> Int # enumFrom :: GDateMonth -> [GDateMonth] # enumFromThen :: GDateMonth -> GDateMonth -> [GDateMonth] # enumFromTo :: GDateMonth -> GDateMonth -> [GDateMonth] # enumFromThenTo :: GDateMonth -> GDateMonth -> GDateMonth -> [GDateMonth] #
Eq GDateMonth Source # |
Methods (==) :: GDateMonth -> GDateMonth -> Bool # (/=) :: GDateMonth -> GDateMonth -> Bool #
Ord GDateMonth Source # |
Methods compare :: GDateMonth -> GDateMonth -> Ordering # (<) :: GDateMonth -> GDateMonth -> Bool # (<=) :: GDateMonth -> GDateMonth -> Bool # (>) :: GDateMonth -> GDateMonth -> Bool # (>=) :: GDateMonth -> GDateMonth -> Bool # max :: GDateMonth -> GDateMonth -> GDateMonth # min :: GDateMonth -> GDateMonth -> GDateMonth #

data GDateYear Source #

Instances

Bounded GDateYear Source # |
Methods minBound :: GDateYear # maxBound :: GDateYear #
Eq GDateYear Source # |
Methods (==) :: GDateYear -> GDateYear -> Bool # (/=) :: GDateYear -> GDateYear -> Bool #
Ord GDateYear Source # |
Methods compare :: GDateYear -> GDateYear -> Ordering # (<) :: GDateYear -> GDateYear -> Bool # (<=) :: GDateYear -> GDateYear -> Bool # (>) :: GDateYear -> GDateYear -> Bool # (>=) :: GDateYear -> GDateYear -> Bool # max :: GDateYear -> GDateYear -> GDateYear # min :: GDateYear -> GDateYear -> GDateYear #

type GDateJulianDay = CUInt Source #

data GDateWeekday Source #

Instances

Bounded GDateWeekday Source # |
Methods minBound :: GDateWeekday # maxBound :: GDateWeekday #
Enum GDateWeekday Source # |

Methods

succ :: GDateWeekday -> GDateWeekday #

pred :: GDateWeekday -> GDateWeekday #

toEnum :: Int -> GDateWeekday #

fromEnum :: GDateWeekday -> Int #

enumFrom :: GDateWeekday -> [GDateWeekday] #

enumFromThen :: GDateWeekday -> GDateWeekday -> [GDateWeekday] #

enumFromTo :: GDateWeekday -> GDateWeekday -> [GDateWeekday] #

enumFromThenTo :: GDateWeekday -> GDateWeekday -> GDateWeekday -> [GDateWeekday] #

Eq GDateWeekday Source # |
Methods (==) :: GDateWeekday -> GDateWeekday -> Bool # (/=) :: GDateWeekday -> GDateWeekday -> Bool #
Ord GDateWeekday Source # |
Methods compare :: GDateWeekday -> GDateWeekday -> Ordering # (<) :: GDateWeekday -> GDateWeekday -> Bool # (<=) :: GDateWeekday -> GDateWeekday -> Bool # (>) :: GDateWeekday -> GDateWeekday -> Bool # (>=) :: GDateWeekday -> GDateWeekday -> Bool # max :: GDateWeekday -> GDateWeekday -> GDateWeekday # min :: GDateWeekday -> GDateWeekday -> GDateWeekday #

gDateValidJulian :: GDateJulianDay -> Bool Source #

gDateValidDMY :: GDateDay -> GDateMonth -> GDateYear -> Bool Source #

gDateNewJulian :: GDateJulianDay -> Maybe GDate Source #

gDateNewDMY :: GDateDay -> GDateMonth -> GDateYear -> Maybe GDate Source #

gDateSetDay :: GDate -> GDateDay -> Maybe GDate Source #

gDateSetMonth :: GDate -> GDateMonth -> Maybe GDate Source #

gDateSetYear :: GDate -> GDateYear -> Maybe GDate Source #

gDateNewTimeVal :: GTimeVal -> GDate Source #

gDateParse :: GlibString string => string -> IO (Maybe GDate) Source #

gDateAddDays :: GDate -> Word -> GDate Source #

gDateSubtractDays :: GDate -> Word -> GDate Source #

gDateAddMonths :: GDate -> Word -> GDate Source #

gDateSubtractMonths :: GDate -> Word -> GDate Source #

gDateAddYears :: GDate -> Word -> GDate Source #

gDateSubtractYears :: GDate -> Word -> GDate Source #

gDateDaysBetween :: GDate -> GDate -> Int Source #

gDateCompare :: GDate -> GDate -> Ordering Source #

gDateClamp :: GDate -> GDate -> GDate -> GDate Source #

gDateDay :: GDate -> GDateDay Source #

gDateMonth :: GDate -> GDateMonth Source #

gDateYear :: GDate -> GDateYear Source #

gDateWeekday :: GDate -> GDateWeekday Source #