Cldr.Calendar.Config (Cldr Calendars v1.14.0) View Source

Defines the configuration for a calendar.

See Cldr.Calendar.new/3 for usage details.

Link to this section Summary

Types

t()

Defines the struct type for a calendar configuration

Link to this section Types

Specs

t() :: %Cldr.Calendar.Config{
  begins_or_ends: :begins | :ends,
  calendar: atom(),
  cldr_backend: Cldr.backend() | nil,
  day_of_week: Cldr.Calendar.day_of_week(),
  first_or_last: :first | :last,
  min_days_in_first_week: 1..7,
  month_of_year: pos_integer(),
  weeks_in_month: [pos_integer()],
  year: :majority | :starts | :ends
}

Defines the struct type for a calendar configuration

Link to this section Functions

Link to this function

first_day_for_locale(backend, options)

View Source
Link to this function

min_days_for_locale(backend, options)

View Source