Offlixir.Holiday (offlixir v0.1.0)

Copy Markdown View Source

A public holiday of a country.

  • :country - the ISO 3166-1 alpha-2 code as an upper case atom, for example :FR
  • :id - a stable identifier, for example "FR-NEWYEARSDAY-01". Two holidays of a country can share a date but never an id within a year
  • :date - the calendar date of the holiday
  • :observed_date - the day actually taken off when the country moves a holiday that falls on a week-end. Equal to :date when there is no such rule
  • :local_name - the name in the language of the country
  • :english_name - the name in English

Summary

Types

t()

@type t() :: %Offlixir.Holiday{
  country: atom(),
  date: Date.t(),
  english_name: String.t(),
  id: String.t(),
  local_name: String.t(),
  observed_date: Date.t()
}