thyme-0.3.5.5: A faster time library

Safe HaskellNone
LanguageHaskell2010

Data.Thyme.Format

Contents

Synopsis

Documentation

class FormatTime t where Source #

Minimal complete definition

showsTime

Methods

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

Instances

FormatTime MondayWeek Source # 

Methods

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

FormatTime SundayWeek Source # 

Methods

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

FormatTime WeekDate Source # 

Methods

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

FormatTime MonthDay Source # 

Methods

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

FormatTime OrdinalDate Source # 

Methods

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

FormatTime YearMonthDay Source # 

Methods

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

FormatTime Day Source # 

Methods

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

FormatTime UniversalTime Source # 

Methods

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

FormatTime UTCTime Source # 

Methods

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

FormatTime TimeOfDay Source # 

Methods

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

FormatTime TimeZone Source # 

Methods

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

FormatTime LocalTime Source # 

Methods

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

FormatTime ZonedTime Source # 

Methods

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

FormatTime AbsoluteTime Source # 

Methods

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

FormatTime DotNetTime Source # 

Methods

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

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

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 #

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