time_zone_info v0.1.0 TimeZoneInfo.Transformer.Transition View Source
This modules handles transitions during the transformation.
Link to this section Summary
Functions
Adds a transition to transitions if the first transition does not have the same datetime.
Returns the std_offset
of a transition. If this function gets a list then
the std_offset
of the last transition will be returned.
Transforms transition date-times to UTC and creates the
TimeZoneInfo.time_zone_period
.
Link to this section Types
Link to this type
t()
View Sourcet() :: {NaiveDateTime.t(), {Calendar.std_offset(), Calendar.utc_offset(), TimeZoneInfo.time_standard(), Calendar.zone_abbr()}}
Link to this section Functions
Adds a transition to transitions if the first transition does not have the same datetime.
Link to this function
get_std_offset(transitions)
View Sourceget_std_offset(transition | transitions) :: Calendar.std_offset() when transition: t(), transitions: [t()]
Returns the std_offset
of a transition. If this function gets a list then
the std_offset
of the last transition will be returned.
Link to this function
transform(transitions)
View Sourcetransform([t()]) :: [{NaiveDateTime.t(), TimeZoneInfo.time_zone_period()}]
Transforms transition date-times to UTC and creates the
TimeZoneInfo.time_zone_period
.