adius / vectual / TimeUtils.Config

Date configuration.

For i18n for day and month names. Parameter to Format.format* functions.

There is scope to put in some default format strings here.


type alias Config =
{ i18n : { dayShort : Time.Weekday -> String
, dayName : Time.Weekday -> String
, monthShort : Time.Month -> String
, monthName : Time.Month -> String
, dayOfMonthWithSuffix : Basics.Bool -> Basics.Int -> String
, twelveHourPeriod : TimeUtils.TwelveHourClock.TwelveHourPeriod -> String }
, format : { date : String
, longDate : String
, time : String
, longTime : String
, dateTime : String
, firstDayOfWeek : Time.Weekday } 
}

Configuration for formatting dates.