gi-soup-0.2.52.15: Soup bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Structs.Date

Contents

Description

A date and time. The date is assumed to be in the (proleptic) Gregorian calendar. The time is in UTC if utc is %TRUE. Otherwise, the time is a local time, and offset gives the offset from UTC in minutes (such that adding offset to the time would give the correct UTC time). If utc is %FALSE and @offset is 0, then the %SoupDate represents a "floating" time with no associated timezone information.

Synopsis

Exported types

newtype Date Source

Constructors

Date (ForeignPtr Date) 

Instances

BoxedObject Date 
(~) AttrOpTag tag AttrSet => Constructible Date tag 
((~) * signature (m TimeVal), MonadIO m) => MethodInfo * DateToTimevalMethodInfo Date signature 
((~) * signature (m CLong), MonadIO m) => MethodInfo * DateToTimeTMethodInfo Date signature 
((~) * signature (DateFormat -> m Text), MonadIO m) => MethodInfo * DateToStringMethodInfo Date signature 
((~) * signature (m Bool), MonadIO m) => MethodInfo * DateIsPastMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetYearMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetUtcMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetSecondMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetOffsetMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMonthMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMinuteMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetHourMethodInfo Date signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetDayMethodInfo Date signature 
((~) * signature (m ()), MonadIO m) => MethodInfo * DateFreeMethodInfo Date signature 
((~) * signature (m Date), MonadIO m) => MethodInfo * DateCopyMethodInfo Date signature 
((~) * info (ResolveDateMethod t Date), MethodInfo * info Date p) => IsLabelProxy t (Date -> p) 
type AttributeList Date 

newZeroDate :: MonadIO m => m Date Source

Construct a Date struct initialized to zero.

Methods

dateCopy

data DateCopyMethodInfo Source

Instances

((~) * signature (m Date), MonadIO m) => MethodInfo * DateCopyMethodInfo Date signature 

dateFree

data DateFreeMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * DateFreeMethodInfo Date signature 

dateFree :: MonadIO m => Date -> m () Source

dateGetDay

data DateGetDayMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetDayMethodInfo Date signature 

dateGetHour

data DateGetHourMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetHourMethodInfo Date signature 

dateGetMinute

data DateGetMinuteMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMinuteMethodInfo Date signature 

dateGetMonth

data DateGetMonthMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMonthMethodInfo Date signature 

dateGetOffset

data DateGetOffsetMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetOffsetMethodInfo Date signature 

dateGetSecond

data DateGetSecondMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetSecondMethodInfo Date signature 

dateGetUtc

data DateGetUtcMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetUtcMethodInfo Date signature 

dateGetYear

data DateGetYearMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetYearMethodInfo Date signature 

dateIsPast

data DateIsPastMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m) => MethodInfo * DateIsPastMethodInfo Date signature 

dateNew

dateNew :: MonadIO m => Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> m Date Source

dateNewFromNow

dateNewFromString

dateNewFromTimeT

dateToString

data DateToStringMethodInfo Source

Instances

((~) * signature (DateFormat -> m Text), MonadIO m) => MethodInfo * DateToStringMethodInfo Date signature 

dateToTimeT

data DateToTimeTMethodInfo Source

Instances

((~) * signature (m CLong), MonadIO m) => MethodInfo * DateToTimeTMethodInfo Date signature 

dateToTimeval

data DateToTimevalMethodInfo Source

Instances

((~) * signature (m TimeVal), MonadIO m) => MethodInfo * DateToTimevalMethodInfo Date signature 

Properties

Day

dateWriteDay :: MonadIO m => Date -> Int32 -> m () Source

Hour

Minute

Month

Offset

Second

Utc

dateWriteUtc :: MonadIO m => Date -> Bool -> m () Source

Year