time_zone_info v0.1.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 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.
Returns transitions fore the IANA rules
.
Link to this section Functions
max(rules)
View Sourcemax([TimeZoneInfo.IanaParser.rule()]) :: [TimeZoneInfo.IanaParser.rule()]
Returns all rules form the rule set that are for now valid until end of time.
max?(rule_or_rules)
View Sourcemax?(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.
std_letters(rules)
View Sourcestd_letters([TimeZoneInfo.IanaParser.rule()]) :: String.t()
Returns letters
from the first rule that will produce a transition with
std_offset = 0
.
transform(rule)
View Sourcetransform(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.
transitions(rules, since, until, utc_offset, last_utc_offset, format)
View Sourcetransitions( 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
.