TimeZoneInfo.Transformer (TimeZoneInfo v0.7.8)

View Source

The Transformer transfers the parsed IANA data into the required format for TimeZoneInfo.

Summary

Functions

Transforms the iana_data into a map of type TimeZoneInfo.data().

Searching for rules used by time zones.

Types

version()

@type version() :: String.t()

Functions

transform(iana_data, version, config)

Transforms the iana_data into a map of type TimeZoneInfo.data().

used_rules(time_zones)

@spec used_rules(%{required(Calendar.time_zone()) => [TimeZoneInfo.transition()]}) ::
  [
    TimeZoneInfo.rule_name()
  ]

Searching for rules used by time zones.

A rule can just emit on the head of a transition list.