View Source Cldr.TimeZoneName behaviour (Cldr Time Zone Names v0.1.0)
Support for fetching time zone info by zone name and meta zone.
Link to this section Summary
Callbacks
Fetches information for a given time zone and meta zone.
Link to this section Callbacks
@callback resolve( zone_name :: Calendar.time_zone(), meta_zone :: String.t(), opts :: Keyword.t() ) :: {:ok, Cldr.TimeZoneName.Info.t()} | {:error, term()}
Fetches information for a given time zone and meta zone.
arguments
Arguments
zone_nameis an Olson time zone name (e.g. "America/Chicago").meta_zonets the meta zone type for the time zone (e.g. "America_Central").optsis a keyword list of options.
options
Options
:localeis any locale or locale name validated byCldr.validate_locale/2. The default isCldr.get_locale()which returns the locale set for the current process