A text format for a type
Moduletime-compat-1.9.9Haskell2010
Data.Time.Format.ISO8601.Compat
- 2 types
- 1 class
- 40 values
- Packagetime-compat-1.9.9
- Exports43
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceFormat.hs
Format
5 declarationsShow a value in the format, if representable
Show a value in the format, or error if unrepresentable
Read a value in the format
Parse a value in the format
Common formats
3 declarationsMethods
iso8601Format :: Format tThe most commonly used ISO 8601 format for this type.
Instances8ISO8601, …
ISO8601 CalendarDiffDaysDefined in time-1.16.0.1 · Data.Time.Format.ISO8601PyYmMdD[ISO 8601:2004(E) sec. 4.4.3.2]ISO8601 DayDefined in time-1.16.0.1 · Data.Time.Format.ISO8601yyyy-mm-dd[ISO 8601:2004(E) sec. 4.1.2.2 extended format]ISO8601 UTCTimeDefined in time-1.16.0.1 · Data.Time.Format.ISO8601yyyy-mm-ddThh:mm:ss[.ss]Z[ISO 8601:2004(E) sec. 4.3.2 extended format]ISO8601 CalendarDiffTimeDefined in time-1.16.0.1 · Data.Time.Format.ISO8601PyYmMdDThHmMs[.ss]S[ISO 8601:2004(E) sec. 4.4.3.2]ISO8601 LocalTimeDefined in time-1.16.0.1 · Data.Time.Format.ISO8601yyyy-mm-ddThh:mm:ss[.ss][ISO 8601:2004(E) sec. 4.3.2 extended format]ISO8601 TimeOfDayDefined in time-1.16.0.1 · Data.Time.Format.ISO8601hh:mm:ss[.ss][ISO 8601:2004(E) sec. 4.2.2.2, 4.2.2.4(a) extended format]ISO8601 TimeZoneDefined in time-1.16.0.1 · Data.Time.Format.ISO8601±hh:mm[ISO 8601:2004(E) sec. 4.2.5.1 extended format]ISO8601 ZonedTimeDefined in time-1.16.0.1 · Data.Time.Format.ISO8601yyyy-mm-ddThh:mm:ss[.ss]±hh:mm[ISO 8601:2004(E) sec. 4.3.2 extended format]
Show in the most commonly used ISO 8601 format.
Parse the most commonly used ISO 8601 format.
All formats
35 declarationsConstructors
ExtendedFormatUse hyphens and colons. [ISO 8601:2004(E) sec. 2.3.4]
BasicFormatOmit hyphens and colons. "The basic format should be avoided in plain text." [ISO 8601:2004(E) sec. 2.3.3]
Read a value in either extended or basic format
Parse a value in either extended or basic format
yyyy-mm-dd (extended), yyyymmdd (basic) [ISO 8601:2004(E) sec. 4.1.2.2]
yyyy-mm [ISO 8601:2004(E) sec. 4.1.2.3(a)]
yyyy [ISO 8601:2004(E) sec. 4.1.2.3(b)]
yy [ISO 8601:2004(E) sec. 4.1.2.3(c)]
±yyyyy-mm-dd (extended), ±yyyyymmdd (basic) [ISO 8601:2004(E) sec. 4.1.2.4(a)]
±yyyyy-mm [ISO 8601:2004(E) sec. 4.1.2.4(b)]
±yyyyy [ISO 8601:2004(E) sec. 4.1.2.4(c)]
±yyy [ISO 8601:2004(E) sec. 4.1.2.4(d)]
yyyy-ddd (extended), yyyyddd (basic) [ISO 8601:2004(E) sec. 4.1.3.2]
yyyyy-ddd (extended), yyyyyddd (basic) [ISO 8601:2004(E) sec. 4.1.3.3]
yyyy-Www-D (extended), yyyyWwwd (basic) [ISO 8601:2004(E) sec. 4.1.4.2]
yyyy-Www (extended), yyyyWww (basic) [ISO 8601:2004(E) sec. 4.1.4.3]
±yyyyy-Www-d (extended), ±yyyyyWwwD (basic) [ISO 8601:2004(E) sec. 4.1.4.4]
±yyyyy-Www (extended), ±yyyyyWww (basic) [ISO 8601:2004(E) sec. 4.1.4.4]
hh:mm:ss[.ss] (extended), hhmmss[.ss] (basic) [ISO 8601:2004(E) sec. 4.2.2.2, 4.2.2.4(a)]
hh:mm[.mm] (extended), hhmm[.mm] (basic) [ISO 8601:2004(E) sec. 4.2.2.3(a), 4.2.2.4(b)]
hh[.hh] [ISO 8601:2004(E) sec. 4.2.2.3(b), 4.2.2.4(c)]
Tx [ISO 8601:2004(E) sec. 4.2.2.5]
xZ [ISO 8601:2004(E) sec. 4.2.4]
±hh:mm (extended), ±hhmm (basic) [ISO 8601:2004(E) sec. 4.2.5.1]
hh:mm:ss±hh:mm (extended), hhmmss±hhmm (basic) [ISO 8601:2004(E) sec. 4.2.5.2]
xTy [ISO 8601:2004(E) sec. 4.3.2]
xTy±hh:mm (extended), xTy±hhmm (basic) [ISO 8601:2004(E) sec. 4.3.2]
xTyZ [ISO 8601:2004(E) sec. 4.3.2]
xTy [ISO 8601:2004(E) sec. 4.3.3]
x±hh:mm (extended), x±hhmm (basic) [ISO 8601:2004(E) sec. 4.3.3]
PyyYmmMddD [ISO 8601:2004(E) sec. 4.4.3.2]
PyyYmmMddDThhHmmMss[.ss]S [ISO 8601:2004(E) sec. 4.4.3.2]
Pyyyy-mm-dd (extended), Pyyyymmdd (basic) [ISO 8601:2004(E) sec. 4.4.3.3]
Pyyyy-mm-ddThh:mm:ss (extended), PyyyymmddThhmmss (basic) [ISO 8601:2004(E) sec. 4.4.3.3]
x/y [ISO 8601:2004(E) sec. 4.4.4.1]
Rn/x/y [ISO 8601:2004(E) sec. 4.5]