time_zone_info v0.3.0 TimeZoneInfo.Transformer.Rule View Source

This module handles and transforms the IANA rules.

Link to this section Summary

Functions

Returns all rules form the rule set that are for now valid until end of time.

Returns true if rule is valid until end of time or one of the rules is valid until end of time.

Returns a rule-set for the given rules.

Returns a map of rule-set for the given map of rules.

Transforms a IanaParser.rule to a TimeZoneInfo.rule. If the function gets a list then all rules will be transformed.

Link to this section Functions

Returns all rules form the rule set that are for now valid until end of time.

Link to this function

max?(rule_or_rules)

View Source
max?(rule | rules) :: boolean()
when rule: TimeZoneInfo.IanaParser.rule(),
     rules: [TimeZoneInfo.IanaParser.rule()]

Returns true if rule is valid until end of time or one of the rules is valid until end of time.

Returns a rule-set for the given rules.

Link to this function

to_rule_sets(rules, lookahead)

View Source
to_rule_sets(
  %{required(String.t()) => [TimeZoneInfo.rule()]},
  non_neg_integer()
) :: %{required(String.t()) => TimeZoneInfo.Transformer.RuleSet.t()}

Returns a map of rule-set for the given map of rules.

Transforms a IanaParser.rule to a TimeZoneInfo.rule. If the function gets a list then all rules will be transformed.