View Source TimeZoneInfo.Transformer.Rule (TimeZoneInfo v0.7.2)

This module handles and transforms the IANA rules.

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.

Functions

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

@spec 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.

Link to this function

to_rule_set(rules, lookahead)

View Source

Returns a rule-set for the given rules.

Link to this function

to_rule_sets(rules, lookahead)

View Source
@spec 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.

@spec transform(rule | rules) :: TimeZoneInfo.rule() | [TimeZoneInfo.rule()]
when rule: TimeZoneInfo.IanaParser.rule(),
     rules: [TimeZoneInfo.IanaParser.rule()]

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