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

Data.HodaTime.Pattern.CalendarDate

Synopsis

Standard Patterns

pd :: HasDate d => Pattern (d -> d) (d -> String) String Source #

This is the short date pattern, currently defined as "ddMMyyyy".

pD :: (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 #

This is the long date pattern, currently defined as "dddd, dd MMMM yyyy".

Custom Patterns

Used to create specialized patterns.

pyyyy :: HasDate d => Pattern (d -> d) (d -> String) String Source #

Absolute year in exactly 4 digits; values 0000-9999 (note: not all dates will be valid in all calendars, if the date is too early it will clamp to earliest valid date)

pMM :: HasDate d => Pattern (d -> d) (d -> String) String Source #

Month of year specified as a number - zero-padded

pMMMM :: forall cal d c. (d ~ c cal, IsCalendar cal, HasDate d, Bounded (Month cal), Read (Month cal), Show (Month cal), Enum (Month cal)) => Pattern (d -> d) (d -> String) String Source #

Full month name, parsed case-insensitively. Formats in title case

pdd :: HasDate d => Pattern (d -> d) (d -> String) String Source #

Day of month - zero-padded