View Source Zonex.MetaZones (Zonex v0.2.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 territory for a time 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.

@spec territories(zone_name :: Calendar.time_zone()) :: [territory()]

Gets the territory for a time zone.