View Source Holidefs.Holiday (holidefs v0.3.8)

A holiday itself.

Link to this section Summary

Functions

Returns a list of holidays for the definition rule on the given year

Returns the translated name of the given holiday

Link to this section Types

Specs

t() :: %Holidefs.Holiday{
  date: Date.t(),
  informal?: boolean(),
  name: String.t(),
  observed_date: Date.t(),
  raw_date: Date.t(),
  uid: String.t()
}

Link to this section Functions

Link to this function

from_rule(code, rule, year, opts \\ %Options{})

View Source

Specs

Returns a list of holidays for the definition rule on the given year

Link to this function

translate_name(code, name)

View Source

Specs

translate_name(atom(), String.t()) :: String.t()

Returns the translated name of the given holiday