This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Date.Extra.Config.Config_en_us

This is the default english config for formatting dates.

config : Config.Config

Config for en-us.

Copyright (c) 2016-2018 Robin Luiten

module Date.Extra.Config.Config_en_us exposing (..)

{-| This is the default english config for formatting dates.

@docs config

Copyright (c) 2016-2018 Robin Luiten

-}

import Date
import Date.Extra.Config as Config
import Date.Extra.I18n.I_en_us as English
import Date.Extra.I18n.I_default as Default


{-| Config for en-us.
-}
config : Config.Config
config =
    { i18n =
        { dayShort = English.dayShort
        , dayName = English.dayName
        , monthShort = English.monthShort
        , monthName = English.monthName
        , dayOfMonthWithSuffix = English.dayOfMonthWithSuffix
        , twelveHourPeriod = Default.twelveHourPeriod
        }
    , format =
        { date = "%-m/%-d/%Y" -- M/d/YYY
        , longDate = "%A, %B %d, %Y" -- dddd, MMMM dd, yyyy
        , time = "%-I:%M %p" -- h:mm tt
        , longTime = "%-I:%M:%S %p" -- h:mm:ss tt
        , dateTime = "%-m/%-d/%Y %-I:%M %p" -- date + time
        , firstDayOfWeek = Date.Sun
        }
    }