thyme-0.3.5.5: A faster time library
Safe HaskellNone
LanguageHaskell2010

Data.Thyme.Format

Synopsis

Documentation

class FormatTime t where Source #

Methods

showsTime :: TimeLocale -> t -> (Char -> ShowS) -> Char -> ShowS Source #

Instances

Instances details
FormatTime MondayWeek Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> MondayWeek -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime SundayWeek Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> SundayWeek -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime WeekDate Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> WeekDate -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime MonthDay Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> MonthDay -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime OrdinalDate Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> OrdinalDate -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime YearMonthDay Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> YearMonthDay -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime Day Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> Day -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime UniversalTime Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> UniversalTime -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime UTCTime Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> UTCTime -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime TimeOfDay Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> TimeOfDay -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime TimeZone Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> TimeZone -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime LocalTime Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> LocalTime -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime ZonedTime Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> ZonedTime -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime AbsoluteTime Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> AbsoluteTime -> (Char -> ShowS) -> Char -> ShowS Source #

FormatTime DotNetTime Source # 
Instance details

Defined in Data.Thyme.Format.Aeson

Methods

showsTime :: TimeLocale -> DotNetTime -> (Char -> ShowS) -> Char -> ShowS Source #

formatTime :: FormatTime t => TimeLocale -> String -> t -> String Source #

class ParseTime t where Source #

Methods

buildTime :: TimeParse -> t Source #

Instances

Instances details
ParseTime MondayWeek Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime SundayWeek Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime WeekDate Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime MonthDay Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime OrdinalDate Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime YearMonthDay Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime Day Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime UniversalTime Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime UTCTime Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime TimeOfDay Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime TimeZone Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime LocalTime Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime ZonedTime Source # 
Instance details

Defined in Data.Thyme.Format

ParseTime AbsoluteTime Source # 
Instance details

Defined in Data.Thyme.Format

parseTime :: ParseTime t => TimeLocale -> String -> String -> Maybe t Source #

readTime :: ParseTime t => TimeLocale -> String -> String -> t Source #

readsTime :: ParseTime t => TimeLocale -> String -> ReadS t Source #

data TimeParse Source #

Instances

Instances details
Show TimeParse Source # 
Instance details

Defined in Data.Thyme.Format

Methods

showsPrec :: Int -> TimeParse -> ShowS

show :: TimeParse -> String

showList :: [TimeParse] -> ShowS

timeParser :: TimeLocale -> String -> Parser TimeParse Source #

Time Parser for UTF-8 encoded ByteStrings.

Attoparsec easily beats any String parser out there, but we do have to be careful to convert the input to UTF-8 ByteStrings.

Orphan instances

Read Day Source # 
Instance details

Methods

readsPrec :: Int -> ReadS Day

readList :: ReadS [Day]

readPrec :: ReadPrec Day

readListPrec :: ReadPrec [Day]

Read UTCTime Source # 
Instance details

Methods

readsPrec :: Int -> ReadS UTCTime

readList :: ReadS [UTCTime]

readPrec :: ReadPrec UTCTime

readListPrec :: ReadPrec [UTCTime]

Read UTCView Source # 
Instance details

Methods

readsPrec :: Int -> ReadS UTCView

readList :: ReadS [UTCView]

readPrec :: ReadPrec UTCView

readListPrec :: ReadPrec [UTCView]

Read TimeOfDay Source # 
Instance details

Methods

readsPrec :: Int -> ReadS TimeOfDay

readList :: ReadS [TimeOfDay]

readPrec :: ReadPrec TimeOfDay

readListPrec :: ReadPrec [TimeOfDay]

Read LocalTime Source # 
Instance details

Methods

readsPrec :: Int -> ReadS LocalTime

readList :: ReadS [LocalTime]

readPrec :: ReadPrec LocalTime

readListPrec :: ReadPrec [LocalTime]

Read ZonedTime Source # 
Instance details

Methods

readsPrec :: Int -> ReadS ZonedTime

readList :: ReadS [ZonedTime]

readPrec :: ReadPrec ZonedTime

readListPrec :: ReadPrec [ZonedTime]