Koyomi.Holiday (Koyomi v0.2.1)

Copy Markdown View Source

A public holiday on one day, as Koyomi.Holidays lists it.

  • :date - the day, a Date.
  • :name - the name in the main language of the country, for example "Natal" in Portugal or "元日" in Japan.
  • :english - the name in English.
  • :country - the country code ("PT"), or the provider module of a provider that has no country/0 callback.

Summary

Types

t()

@type t() :: %Koyomi.Holiday{
  country: String.t() | module(),
  date: Date.t(),
  english: String.t(),
  name: String.t()
}