hodatime-0.2.2.1: A fully featured date/time library based on Nodatime
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.HodaTime.Pattern.LocalTime

Synopsis

Standard Patterns

pt :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

Short format pattern. Currently defined as "HH:mm" but should eventually follow the locale

pT :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

Long format pattern. Currently defined as "HH:mm:ss" but should eventually follow locale

Custom Patterns

Used to create specialized patterns

pHH :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

The double digit hour of day in the 24-hour clock; a value 00-23.

phh :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

The double digit hour of day in the 12-hour clock; a value 1-12. When parsing, if no am/pm designator is specified, the parsed value is in the morning.

pmm :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

The double digit minute of day in the 24-hour clock; a value 00-59.

pss :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

The double digit second of day in the 24-hour clock; a value 00-59.

pp :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

12 hour clock time period designation short form; either A or P

ppp :: HasLocalTime lt => Pattern (lt -> lt) (lt -> String) String Source #

12 hour clock time period designation full form; either AM or PM

hour' :: HasLocalTime lt => Pattern (TimeInfo -> TimeInfo) (lt -> String) String Source #

minute' :: HasLocalTime lt => Pattern (TimeInfo -> TimeInfo) (lt -> String) String Source #

second' :: HasLocalTime lt => Pattern (TimeInfo -> TimeInfo) (lt -> String) String Source #