WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.Utility.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
show/hide Instances
leapSeconds :: [Integer]
in seconds from epoch; needs to be updated when time leaps again
data LeapSeconds
Constructors
LeapSecond Integer
NotLeapSecond Integer
show/hide Instances
isoDateToClockTime :: ISODate -> ClockTime
isoDateAndTimeToClockTime :: ISODateAndTime -> ClockTime
data ISODateAndTime
data type for representing ISO time
Constructors
ISODateAndTime ISODate ISOTime
show/hide Instances
data ISODate
Constructors
ISODate ISOYearSpec ISODayOfYearSpec
show/hide Instances
data ISOYearSpec
Constructors
ImplicitYear
ImplicitCentury Int
Century Int
ImplicitDecade Int
Year Int
show/hide Instances
data ISODayOfYearSpec
Constructors
NoDayOfYear
MonthDay ISOMonthSpec ISODayOfMonthSpec
DayOfYear Int
WeekAndDay ISOWeekSpec ISODayOfWeekSpec
show/hide Instances
data ISOMonthSpec
Constructors
ImplicitMonth
Month Int
show/hide Instances
data ISODayOfMonthSpec
Constructors
NoDayOfMonth
DayOfMonth Int
show/hide Instances
data ISOWeekSpec
Constructors
ImplicitWeek
AnyWeek
Week Int
show/hide Instances
data ISODayOfWeekSpec
Constructors
NoDayOfWeek
DayOfWeek Int
show/hide Instances
data ISOTime
Constructors
ISOTime ISOHourSpec ISOMinuteSpec ISOSecondSpec ISOTimeZoneSpec
show/hide Instances
data ISOHourSpec
Constructors
ImplicitHour
Hour Int
show/hide Instances
data ISOMinuteSpec
Constructors
ImplicitMinute
Minute Int
NoMinute
show/hide Instances
data ISOSecondSpec
Constructors
Second Int
NoSecond
show/hide Instances
data ISOTimeZoneSpec
Constructors
LocalTime
UTCTime
PlusTime ISOHourSpec ISOMinuteSpec
MinusTime ISOHourSpec ISOMinuteSpec
show/hide Instances
parseDateFromString :: String -> Maybe ISODate
parseTimeFromString :: String -> Maybe ISOTime
parseDateAndTimeFromString :: String -> Maybe ISODateAndTime
Produced by Haddock version 0.8