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

Data.HodaTime.Pattern.CalendarDateTime

Synopsis

Standard Patterns

ps :: (HasLocalTime dt, HasDate dt) => Pattern (dt -> dt) (dt -> String) String Source #

The sortable pattern, which is always "yyyy-MM-ddT'HH:mm:'ss". (Note: this is only truly sortable for years within the range [0-9999].)

pf :: (HasLocalTime (c cal), HasDate (c cal), IsCalendar cal, Bounded (Month cal), Read (Month cal), Show (Month cal), Enum (Month cal)) => Pattern (c cal -> c cal) (c cal -> String) String Source #

The long date pattern followed by a space, followed by the short time pattern.

pF :: (HasLocalTime (c cal), HasDate (c cal), IsCalendar cal, Bounded (Month cal), Read (Month cal), Show (Month cal), Enum (Month cal)) => Pattern (c cal -> c cal) (c cal -> String) String Source #

The full date and time pattern. This is currently "dddd, dd MMMM yyyy HH:mm:ss".

pg :: (HasLocalTime dt, HasDate dt) => Pattern (dt -> dt) (dt -> String) String Source #

The short date pattern followed by a space, followed by the short time pattern.

pG :: (HasLocalTime dt, HasDate dt) => Pattern (dt -> dt) (dt -> String) String Source #

The short date pattern followed by a space, followed by the long time pattern.

Custom Patterns

Use combination of CalendarDate and LocalTime patterns