class TZInfo::DateTimeWithOffset

A subclass of ‘DateTime` used to represent local times. {DateTimeWithOffset} holds a reference to the related {TimezoneOffset} and overrides various methods to return results appropriate for the {TimezoneOffset}. Certain operations will clear the associated {TimezoneOffset} (if the {TimezoneOffset} would not necessarily be valid for the result). Once the {TimezoneOffset} has been cleared, {DateTimeWithOffset} behaves identically to `DateTime`.

Arithmetic performed on {DateTimeWithOffset} instances is not time zone-aware. Regardless of whether transitions in the time zone are crossed, results of arithmetic operations will always maintain the same offset from UTC (‘offset`). The associated {TimezoneOffset} will aways be cleared.