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
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.
@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(), mzone :: meta_zone_name()) :: [ territory() ]
Gets the territories for a time zone (and its current meta zone).