System.Glib.GDateTime

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

data GTimeVal

Constructors

GTimeVal |
Fields gTimeValSec :: GTimeValPart gTimeValUSec :: GTimeValPart

Instances

Eq GTimeVal |
Ord GTimeVal |
Storable GTimeVal |

gGetCurrentTime :: IO GTimeVal

gUSleep :: GTimeValPart -> IO ()

gTimeValAdd :: GTimeVal -> GTimeValPart -> GTimeVal

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

gTimeValToISO8601 :: GlibString string => GTimeVal -> string

newtype GDate

Constructors

GDate |
Fields gDateJulianDay :: GDateJulianDay

Instances

Eq GDate |
Ord GDate |
Storable GDate |

data GDateDay

Instances

Bounded GDateDay |
Eq GDateDay |
Ord GDateDay |

data GDateMonth

Instances

Bounded GDateMonth |
Enum GDateMonth |
Eq GDateMonth |
Ord GDateMonth |

data GDateYear

Instances

Bounded GDateYear |
Eq GDateYear |
Ord GDateYear |

type GDateJulianDay = CUInt

data GDateWeekday

Instances

Bounded GDateWeekday |
Enum GDateWeekday |
Eq GDateWeekday |
Ord GDateWeekday |

gDateValidJulian :: GDateJulianDay -> Bool

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

gDateNewJulian :: GDateJulianDay -> Maybe GDate

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

gDateSetDay :: GDate -> GDateDay -> Maybe GDate

gDateSetMonth :: GDate -> GDateMonth -> Maybe GDate

gDateSetYear :: GDate -> GDateYear -> Maybe GDate

gDateNewTimeVal :: GTimeVal -> GDate

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

gDateAddDays :: GDate -> Word -> GDate

gDateSubtractDays :: GDate -> Word -> GDate

gDateAddMonths :: GDate -> Word -> GDate

gDateSubtractMonths :: GDate -> Word -> GDate

gDateAddYears :: GDate -> Word -> GDate

gDateSubtractYears :: GDate -> Word -> GDate

gDateDaysBetween :: GDate -> GDate -> Int

gDateCompare :: GDate -> GDate -> Ordering

gDateClamp :: GDate -> GDate -> GDate -> GDate

gDateDay :: GDate -> GDateDay

gDateMonth :: GDate -> GDateMonth

gDateYear :: GDate -> GDateYear

gDateWeekday :: GDate -> GDateWeekday