| Copyright | (C) 2017 Jason Johnson |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Jason Johnson <jason.johnson.081@gmail.com> |
| Stability | experimental |
| Portability | POSIX, Windows |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.HodaTime.Pattern.Offset
Contents
Description
Patterns for an Offset from UTC, rendered as (+/-)HH:mm; pOffsetFull adds seconds,
pOffsetZ writes Z for UTC, and pOffsetCompact omits the colon (+0200).
Standard Patterns
pOffset :: Pattern (Offset -> Offset) (Offset -> String) String Source #
The ISO-8601 offset pattern, sign followed by HH:mm (e.g. +02:00, -05:30, +00:00 for UTC).
pOffsetZ :: Pattern (Offset -> Offset) (Offset -> String) String Source #
Like pOffset but renders UTC (a zero offset) as Z rather than +00:00, per ISO-8601 (and parses Z back).