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

Defines the configuration for a calendar.

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

Summary

Types

t()

Defines the struct type for a calendar configuration

Types

@type t() :: %Cldr.Calendar.Config{
  begins_or_ends: :begins | :ends,
  calendar: atom(),
  cldr_backend: Cldr.backend() | nil,
  cldr_calendar_type: :gregorian | :japanese,
  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

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