View Source Holidefs.Options (holidefs v0.4.0)
Here is the list of options you can send to Holidefs
functions:
:regions
- a list of strings to define what region will be loaded. When empty it fallbacks to the basic region of the locale, which is the region with the same code of the locale. Defaults to[]
:include_informal?
- flag to include the informal holidays on the return list. Defaults tofalse
:observed?
- flag to consider theobserved_date
of the holidays as thedate
. Defaults tofalse
Link to this section Summary
Functions
Builds a new Options
struct with normalized fields.
Link to this section Types
Specs
Specs
Link to this section Functions
Specs
build(attrs(), Holidefs.Definition.t()) :: t()
Builds a new Options
struct with normalized fields.
The definition
is used to get the all the regions and code.