kairos-core-0.1: A utility program for converting between timezones.
Safe HaskellNone
LanguageHaskell2010

Kairos.Types.TimeFormat

Description

Since: 0.1

Synopsis

Documentation

newtype TimeFormat Source #

Time formatting string. The Monoid instance behaves like Text.

Since: 0.1

Constructors

MkTimeFormat 

Fields

Instances

Instances details
NFData TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

Methods

rnf :: TimeFormat -> () #

Monoid TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

Semigroup TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

IsString TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

Generic TimeFormat Source # 
Instance details

Defined in Kairos.Types.TimeFormat

Associated Types

type Rep TimeFormat

Since: kairos-core-0.1

Instance details

Defined in Kairos.Types.TimeFormat

type Rep TimeFormat = D1 ('MetaData "TimeFormat" "Kairos.Types.TimeFormat" "kairos-core-0.1-inplace" 'True) (C1 ('MetaCons "MkTimeFormat" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTimeFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
Show TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

Eq TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

(k ~ An_Iso, a ~ Text, b ~ Text) => LabelOptic "unTimeFormat" k TimeFormat TimeFormat a b Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

type Rep TimeFormat Source #

Since: 0.1

Instance details

Defined in Kairos.Types.TimeFormat

type Rep TimeFormat = D1 ('MetaData "TimeFormat" "Kairos.Types.TimeFormat" "kairos-core-0.1-inplace" 'True) (C1 ('MetaCons "MkTimeFormat" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTimeFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

defaultTimeFormats :: NonEmpty TimeFormat Source #

Parses 24 hour time w and wo colon (13:00, 1300) and 12 hour time w and wo passing (1:30 pm, 1 pm, 10:15 am).

Since: 0.1

hm :: TimeFormat Source #

Format for 24-hour hours:minutes.

Since: 0.1

hm12h :: TimeFormat Source #

Format for 12-hour hours:minutes am/pm.

Since: 0.1

hmTZ :: TimeFormat Source #

Format for 24-hour hours:minutes TZ. As this contains a timezone flag, it should be used for formatting output only. In particular, it should not be used with format.

Since: 0.1

hmTZ12h :: TimeFormat Source #

Format for 12-hour hours:minutes am/pm TZ. As this contains a timezone flag, it should be used for formatting output only. In particular, it should not be used with format.

Since: 0.1

rfc822 :: TimeFormat Source #

Format for RFC822: %a, %_d %b %Y %H:%M:%S %Z. As this contains a timezone flag, it should be used for formatting output only. In particular, it should not be used with format.

Since: 0.1