glib-0.13.8.1: 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

Instances details

Eq GTimeVal Source # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GTimeVal -> GTimeVal -> Bool (/=) :: GTimeVal -> GTimeVal -> Bool
Ord GTimeVal Source # |
Instance details Defined in System.Glib.GDateTime 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 # |
Instance details Defined in System.Glib.GDateTime 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

Instances details

Eq GDate Source # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GDate -> GDate -> Bool (/=) :: GDate -> GDate -> Bool
Ord GDate Source # |
Instance details Defined in System.Glib.GDateTime 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 # |
Instance details Defined in System.Glib.GDateTime 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

Instances details

Bounded GDateDay Source # |
Instance details Defined in System.Glib.GDateTime Methods minBound :: GDateDay maxBound :: GDateDay
Eq GDateDay Source # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GDateDay -> GDateDay -> Bool (/=) :: GDateDay -> GDateDay -> Bool
Ord GDateDay Source # |
Instance details Defined in System.Glib.GDateTime 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

Instances details

Bounded GDateMonth Source # |
Instance details Defined in System.Glib.GDateTime Methods minBound :: GDateMonth maxBound :: GDateMonth
Enum GDateMonth Source # |

Instance details

Defined in System.Glib.GDateTime

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 # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GDateMonth -> GDateMonth -> Bool (/=) :: GDateMonth -> GDateMonth -> Bool
Ord GDateMonth Source # |
Instance details Defined in System.Glib.GDateTime 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

Instances details

Bounded GDateYear Source # |
Instance details Defined in System.Glib.GDateTime Methods minBound :: GDateYear maxBound :: GDateYear
Eq GDateYear Source # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GDateYear -> GDateYear -> Bool (/=) :: GDateYear -> GDateYear -> Bool
Ord GDateYear Source # |
Instance details Defined in System.Glib.GDateTime 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

Instances details

Bounded GDateWeekday Source # |
Instance details Defined in System.Glib.GDateTime Methods minBound :: GDateWeekday maxBound :: GDateWeekday
Enum GDateWeekday Source # |

Instance details

Defined in System.Glib.GDateTime

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 # |
Instance details Defined in System.Glib.GDateTime Methods (==) :: GDateWeekday -> GDateWeekday -> Bool (/=) :: GDateWeekday -> GDateWeekday -> Bool
Ord GDateWeekday Source # |
Instance details Defined in System.Glib.GDateTime 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 #