time-compat-1.9.8: Compatibility package for time
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Time.Format.Compat

Synopsis

UNIX-style formatting

class FormatTime t #

Minimal complete definition

formatCharacter

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

UNIX-style parsing

Note in compat mode acceptWS argument is ignored, it's always True.

parseTimeM :: (MonadFail m, ParseTime t) => Bool -> TimeLocale -> String -> String -> m t #

parseTimeOrError :: ParseTime t => Bool -> TimeLocale -> String -> String -> t #

readSTime :: ParseTime t => Bool -> TimeLocale -> String -> ReadS t #

readPTime :: ParseTime t => Bool -> TimeLocale -> String -> ReadP t #

parseTime Source #

Arguments

:: ParseTime t 
=> TimeLocale

Time locale.

-> String

Format string.

-> String

Input string.

-> Maybe t

The time value, or Nothing if the input could not be parsed using the given format.

Deprecated: use "parseTimeM True" instead

readTime Source #

Arguments

:: ParseTime t 
=> TimeLocale

Time locale.

-> String

Format string.

-> String

Input string.

-> t

The time value.

Deprecated: use "parseTimeOrError True" instead

readsTime Source #

Arguments

:: ParseTime t 
=> TimeLocale

Time locale.

-> String

Format string

-> ReadS t 

Deprecated: use "readSTime True" instead

class ParseTime t #

Minimal complete definition

parseTimeSpecifier, buildTime

Locale

data TimeLocale #

Constructors

TimeLocale 

Fields

Instances

Instances details
Show TimeLocale 
Instance details

Defined in Data.Time.Format.Locale

Methods

showsPrec :: Int -> TimeLocale -> ShowS

show :: TimeLocale -> String

showList :: [TimeLocale] -> ShowS

Eq TimeLocale 
Instance details

Defined in Data.Time.Format.Locale

Methods

(==) :: TimeLocale -> TimeLocale -> Bool

(/=) :: TimeLocale -> TimeLocale -> Bool

Ord TimeLocale 
Instance details

Defined in Data.Time.Format.Locale

Hashable TimeLocale 
Instance details

Defined in Data.Time.Orphans

Methods

hashWithSalt :: Int -> TimeLocale -> Int

hash :: TimeLocale -> Int

iso8601DateFormat :: Maybe String -> String #