holidefs v0.2.0 Holidefs.Holiday View Source

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

Link to this type t() View Source
t() :: %Holidefs.Holiday{
  date: Date.t(),
  informal?: boolean(),
  name: String.t(),
  observed_date: Date.t(),
  raw_date: Date.t()
}

Link to this section Functions

Link to this function from_rule(code, rule, year, opts \\ []) View Source

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

Link to this function translate_name(code, name) View Source
translate_name(atom(), String.t()) :: String.t()

Returns the translated name of the given holiday