ContentsIndex
ISO8601
Synopsis
applyToCalT :: (CalendarTime -> a) -> IO a
isoDateAndTimeToSeconds :: ISODateAndTime -> IO Integer
isoTimeToSeconds :: ISOTime -> IO Integer
isoDateToSeconds :: ISODate -> IO Integer
class ToSeconds iso where
toSeconds :: iso -> CalendarTime -> Integer
toRawSeconds :: iso -> CalendarTime -> Integer
leapSeconds :: [Integer]
data LeapSeconds
= LeapSecond Integer
| NotLeapSecond Integer
isoDateToClockTime :: ISODate -> ClockTime
isoDateAndTimeToClockTime :: ISODateAndTime -> ClockTime
data ISODateAndTime = ISODateAndTime ISODate ISOTime
data ISODate = ISODate ISOYearSpec ISODayOfYearSpec
data ISOYearSpec
= ImplicitYear
| ImplicitCentury Int
| Century Int
| ImplicitDecade Int
| Year Int
data ISODayOfYearSpec
= NoDayOfYear
| MonthDay ISOMonthSpec ISODayOfMonthSpec
| DayOfYear Int
| WeekAndDay ISOWeekSpec ISODayOfWeekSpec
data ISOMonthSpec
= ImplicitMonth
| Month Int
data ISODayOfMonthSpec
= NoDayOfMonth
| DayOfMonth Int
data ISOWeekSpec
= ImplicitWeek
| AnyWeek
| Week Int
data ISODayOfWeekSpec
= NoDayOfWeek
| DayOfWeek Int
data ISOTime = ISOTime ISOHourSpec ISOMinuteSpec ISOSecondSpec ISOTimeZoneSpec
data ISOHourSpec
= ImplicitHour
| Hour Int
data ISOMinuteSpec
= ImplicitMinute
| Minute Int
| NoMinute
data ISOSecondSpec
= Second Int
| NoSecond
data ISOTimeZoneSpec
= LocalTime
| UTCTime
| PlusTime ISOHourSpec ISOMinuteSpec
| MinusTime ISOHourSpec ISOMinuteSpec
parseDateFromString :: String -> Maybe ISODate
parseTimeFromString :: String -> Maybe ISOTime
parseDateAndTimeFromString :: String -> Maybe ISODateAndTime
Documentation
applyToCalT :: (CalendarTime -> a) -> IO a
isoDateAndTimeToSeconds :: ISODateAndTime -> IO Integer
isoTimeToSeconds :: ISOTime -> IO Integer
isoDateToSeconds :: ISODate -> IO Integer
class ToSeconds iso where
Methods
toSeconds :: iso -> CalendarTime -> Integer
returns number of seconds since reference point
toRawSeconds :: iso -> CalendarTime -> Integer
Instances
ToSeconds ISODateAndTime
ToSeconds ISODate
ToSeconds ISOTime
ToSeconds ISOHourSpec
ToSeconds ISOMinuteSpec
ToSeconds ISOSecondSpec
ToSeconds ISOTimeZoneSpec
leapSeconds :: [Integer]
in seconds from epoch; needs to be updated when time leaps again
data LeapSeconds
Constructors
LeapSecond Integer
NotLeapSecond Integer
Instances
Show LeapSeconds
isoDateToClockTime :: ISODate -> ClockTime
isoDateAndTimeToClockTime :: ISODateAndTime -> ClockTime
data ISODateAndTime
data type for representing ISO time
Constructors
ISODateAndTime ISODate ISOTime
Instances
Reason ISODateAndTime
ToSeconds ISODateAndTime
Read ISODateAndTime
Show ISODateAndTime
data ISODate
Constructors
ISODate ISOYearSpec ISODayOfYearSpec
Instances
Reason ISODate
ToSeconds ISODate
Read ISODate
Show ISODate
data ISOYearSpec
Constructors
ImplicitYear
ImplicitCentury Int
Century Int
ImplicitDecade Int
Year Int
Instances
Show ISOYearSpec
data ISODayOfYearSpec
Constructors
NoDayOfYear
MonthDay ISOMonthSpec ISODayOfMonthSpec
DayOfYear Int
WeekAndDay ISOWeekSpec ISODayOfWeekSpec
Instances
Show ISODayOfYearSpec
data ISOMonthSpec
Constructors
ImplicitMonth
Month Int
Instances
Show ISOMonthSpec
data ISODayOfMonthSpec
Constructors
NoDayOfMonth
DayOfMonth Int
Instances
Show ISODayOfMonthSpec
data ISOWeekSpec
Constructors
ImplicitWeek
AnyWeek
Week Int
Instances
Show ISOWeekSpec
data ISODayOfWeekSpec
Constructors
NoDayOfWeek
DayOfWeek Int
Instances
Show ISODayOfWeekSpec
data ISOTime
Constructors
ISOTime ISOHourSpec ISOMinuteSpec ISOSecondSpec ISOTimeZoneSpec
Instances
Reason ISOTime
ToSeconds ISOTime
Read ISOTime
Show ISOTime
data ISOHourSpec
Constructors
ImplicitHour
Hour Int
Instances
ToSeconds ISOHourSpec
Show ISOHourSpec
data ISOMinuteSpec
Constructors
ImplicitMinute
Minute Int
NoMinute
Instances
ToSeconds ISOMinuteSpec
Show ISOMinuteSpec
data ISOSecondSpec
Constructors
Second Int
NoSecond
Instances
ToSeconds ISOSecondSpec
Show ISOSecondSpec
data ISOTimeZoneSpec
Constructors
LocalTime
UTCTime
PlusTime ISOHourSpec ISOMinuteSpec
MinusTime ISOHourSpec ISOMinuteSpec
Instances
ToSeconds ISOTimeZoneSpec
Show ISOTimeZoneSpec
parseDateFromString :: String -> Maybe ISODate
parseTimeFromString :: String -> Maybe ISOTime
parseDateAndTimeFromString :: String -> Maybe ISODateAndTime
Produced by Haddock version 0.6