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

Date.Extra.I18n.I_default

Default values to be reused in multiple language configurations.

twelveHourPeriod : TwelveHourPeriod -> String

12-hour clock period (AM/PM) translation and formatting. This should be valid for most latin-based languages.

module Date.Extra.I18n.I_default exposing (twelveHourPeriod)

{-| Default values to be reused in multiple language configurations.

@docs twelveHourPeriod

-}

import Date.Extra.TwelveHourClock exposing (TwelveHourPeriod(..))


{-| 12-hour clock period (AM/PM) translation and formatting.
This should be valid for most latin-based languages.
-}
twelveHourPeriod : TwelveHourPeriod -> String
twelveHourPeriod period =
    case period of
        AM ->
            "AM"

        PM ->
            "PM"