Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- newtype Date = Date (ForeignPtr Date)
- newZeroDate :: MonadIO m => m Date
- noDate :: Maybe Date
- data DateCopyMethodInfo
- dateCopy :: MonadIO m => Date -> m Date
- data DateFreeMethodInfo
- dateFree :: MonadIO m => Date -> m ()
- data DateGetDayMethodInfo
- dateGetDay :: MonadIO m => Date -> m Int32
- data DateGetHourMethodInfo
- dateGetHour :: MonadIO m => Date -> m Int32
- data DateGetMinuteMethodInfo
- dateGetMinute :: MonadIO m => Date -> m Int32
- data DateGetMonthMethodInfo
- dateGetMonth :: MonadIO m => Date -> m Int32
- data DateGetOffsetMethodInfo
- dateGetOffset :: MonadIO m => Date -> m Int32
- data DateGetSecondMethodInfo
- dateGetSecond :: MonadIO m => Date -> m Int32
- data DateGetUtcMethodInfo
- dateGetUtc :: MonadIO m => Date -> m Int32
- data DateGetYearMethodInfo
- dateGetYear :: MonadIO m => Date -> m Int32
- data DateIsPastMethodInfo
- dateIsPast :: MonadIO m => Date -> m Bool
- dateNew :: MonadIO m => Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> m Date
- dateNewFromNow :: MonadIO m => Int32 -> m Date
- dateNewFromString :: MonadIO m => Text -> m (Maybe Date)
- dateNewFromTimeT :: MonadIO m => CLong -> m Date
- data DateToStringMethodInfo
- dateToString :: MonadIO m => Date -> DateFormat -> m Text
- data DateToTimeTMethodInfo
- dateToTimeT :: MonadIO m => Date -> m CLong
- data DateToTimevalMethodInfo
- dateToTimeval :: MonadIO m => Date -> m TimeVal
- dateDay :: AttrLabelProxy "day"
- dateReadDay :: MonadIO m => Date -> m Int32
- dateWriteDay :: MonadIO m => Date -> Int32 -> m ()
- dateHour :: AttrLabelProxy "hour"
- dateReadHour :: MonadIO m => Date -> m Int32
- dateWriteHour :: MonadIO m => Date -> Int32 -> m ()
- dateMinute :: AttrLabelProxy "minute"
- dateReadMinute :: MonadIO m => Date -> m Int32
- dateWriteMinute :: MonadIO m => Date -> Int32 -> m ()
- dateMonth :: AttrLabelProxy "month"
- dateReadMonth :: MonadIO m => Date -> m Int32
- dateWriteMonth :: MonadIO m => Date -> Int32 -> m ()
- dateOffset :: AttrLabelProxy "offset"
- dateReadOffset :: MonadIO m => Date -> m Int32
- dateWriteOffset :: MonadIO m => Date -> Int32 -> m ()
- dateReadSecond :: MonadIO m => Date -> m Int32
- dateSecond :: AttrLabelProxy "second"
- dateWriteSecond :: MonadIO m => Date -> Int32 -> m ()
- dateReadUtc :: MonadIO m => Date -> m Bool
- dateUtc :: AttrLabelProxy "utc"
- dateWriteUtc :: MonadIO m => Date -> Bool -> m ()
- dateReadYear :: MonadIO m => Date -> m Int32
- dateWriteYear :: MonadIO m => Date -> Int32 -> m ()
- dateYear :: AttrLabelProxy "year"
Exported types
newZeroDate :: MonadIO m => m Date Source
Construct a Date
struct initialized to zero.
Methods
dateCopy
data DateCopyMethodInfo Source
((~) * signature (m Date), MonadIO m) => MethodInfo * DateCopyMethodInfo Date signature |
dateFree
data DateFreeMethodInfo Source
((~) * signature (m ()), MonadIO m) => MethodInfo * DateFreeMethodInfo Date signature |
dateGetDay
data DateGetDayMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetDayMethodInfo Date signature |
dateGetDay :: MonadIO m => Date -> m Int32 Source
dateGetHour
data DateGetHourMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetHourMethodInfo Date signature |
dateGetHour :: MonadIO m => Date -> m Int32 Source
dateGetMinute
data DateGetMinuteMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMinuteMethodInfo Date signature |
dateGetMinute :: MonadIO m => Date -> m Int32 Source
dateGetMonth
data DateGetMonthMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetMonthMethodInfo Date signature |
dateGetMonth :: MonadIO m => Date -> m Int32 Source
dateGetOffset
data DateGetOffsetMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetOffsetMethodInfo Date signature |
dateGetOffset :: MonadIO m => Date -> m Int32 Source
dateGetSecond
data DateGetSecondMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetSecondMethodInfo Date signature |
dateGetSecond :: MonadIO m => Date -> m Int32 Source
dateGetUtc
data DateGetUtcMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetUtcMethodInfo Date signature |
dateGetUtc :: MonadIO m => Date -> m Int32 Source
dateGetYear
data DateGetYearMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * DateGetYearMethodInfo Date signature |
dateGetYear :: MonadIO m => Date -> m Int32 Source
dateIsPast
data DateIsPastMethodInfo Source
((~) * signature (m Bool), MonadIO m) => MethodInfo * DateIsPastMethodInfo Date signature |
dateIsPast :: MonadIO m => Date -> m Bool Source
dateNew
dateNewFromNow
dateNewFromNow :: MonadIO m => Int32 -> m Date Source
dateNewFromString
dateNewFromTimeT
dateNewFromTimeT :: MonadIO m => CLong -> m Date Source
dateToString
data DateToStringMethodInfo Source
((~) * signature (DateFormat -> m Text), MonadIO m) => MethodInfo * DateToStringMethodInfo Date signature |
dateToString :: MonadIO m => Date -> DateFormat -> m Text Source
dateToTimeT
data DateToTimeTMethodInfo Source
((~) * signature (m CLong), MonadIO m) => MethodInfo * DateToTimeTMethodInfo Date signature |
dateToTimeT :: MonadIO m => Date -> m CLong Source
dateToTimeval
data DateToTimevalMethodInfo Source
((~) * signature (m TimeVal), MonadIO m) => MethodInfo * DateToTimevalMethodInfo Date signature |
dateToTimeval :: MonadIO m => Date -> m TimeVal Source
Properties
Day
dateDay :: AttrLabelProxy "day" Source
dateReadDay :: MonadIO m => Date -> m Int32 Source
dateWriteDay :: MonadIO m => Date -> Int32 -> m () Source
Hour
dateHour :: AttrLabelProxy "hour" Source
dateReadHour :: MonadIO m => Date -> m Int32 Source
dateWriteHour :: MonadIO m => Date -> Int32 -> m () Source
Minute
dateMinute :: AttrLabelProxy "minute" Source
dateReadMinute :: MonadIO m => Date -> m Int32 Source
dateWriteMinute :: MonadIO m => Date -> Int32 -> m () Source
Month
dateMonth :: AttrLabelProxy "month" Source
dateReadMonth :: MonadIO m => Date -> m Int32 Source
dateWriteMonth :: MonadIO m => Date -> Int32 -> m () Source
Offset
dateOffset :: AttrLabelProxy "offset" Source
dateReadOffset :: MonadIO m => Date -> m Int32 Source
dateWriteOffset :: MonadIO m => Date -> Int32 -> m () Source
Second
dateReadSecond :: MonadIO m => Date -> m Int32 Source
dateSecond :: AttrLabelProxy "second" Source
dateWriteSecond :: MonadIO m => Date -> Int32 -> m () Source
Utc
dateReadUtc :: MonadIO m => Date -> m Bool Source
dateUtc :: AttrLabelProxy "utc" Source
dateWriteUtc :: MonadIO m => Date -> Bool -> m () Source
Year
dateReadYear :: MonadIO m => Date -> m Int32 Source
dateWriteYear :: MonadIO m => Date -> Int32 -> m () Source
dateYear :: AttrLabelProxy "year" Source