View Source Zonex.MetaZones (Zonex v0.6.0)

Meta zone data.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Resolves the correct meta zone name at a particular instant.

Lists the rules for a given time zone.

Starts the process.

Gets the territories for a time zone (and its current meta zone).

Link to this section Types

@type meta_zone_name() :: String.t()
@type territory() :: String.t()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec resolve(rules :: [Zonex.MetaZones.Rule.t()], instant :: DateTime.t()) ::
  {:ok, meta_zone_name()} | {:error, term()}

Resolves the correct meta zone name at a particular instant.

Link to this function

rules_for_zone(zone_name)

View Source
@spec rules_for_zone(zone_name :: Calendar.time_zone()) :: [Zonex.MetaZones.Rule.t()]

Lists the rules for a given time zone.

Starts the process.

Link to this function

territories(zone_name, mzone)

View Source
@spec territories(zone_name :: Calendar.time_zone(), mzone :: meta_zone_name()) :: [
  territory()
]

Gets the territories for a time zone (and its current meta zone).