time_zone_info v0.1.1 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 letters from the first rule that will produce a transition with std_offset = 0.

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 letters from the first rule that will produce a transition with std_offset = 0.

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

Link to this function

transitions(rules, since, until, utc_offset, last_utc_offset, format)

View Source
transitions(
  rules :: [TimeZoneInfo.IanaParser.rule()],
  since :: NaiveDateTime.t(),
  until :: NaiveDateTime.t(),
  utc_offset :: Calendar.utc_offset(),
  last_utc_offset :: Calendar.utc_offset() | nil,
  format :: TimeZoneInfo.zone_abbr_format()
) :: [TimeZoneInfo.Transformer.Transition.t()]

Returns transitions fore the IANA rules.