chronos-0.2.0: A time library, encoding, decoding, and instances

Safe HaskellNone
LanguageHaskell2010

Chronos.OffsetDatetime.Text

Description

The naming conventions for offsets that are used in function names are as follows:

  • %z - z +hhmm numeric time zone (e.g., -0400)
  • %:z - z1 +hh:mm numeric time zone (e.g., -04:00)
  • %::z - z2 +hh:mm:ss numeric time zone (e.g., -04:00:00)
  • %:::z - z3 numeric time zone with : to necessary precision (e.g., -04, +05:30)

Synopsis

Documentation

parseSignedness :: Parser Bool Source #

True means positive, false means negative

parseOffset_z3 :: Parser Offset Source #

This is generous in what it accepts. If you give something like +04:00 as the offset, it will be allowed, even though it could be shorter.