Exception: TZInfo::AmbiguousTime
- Inherits:
-
StandardError
- Object
- StandardError
- TZInfo::AmbiguousTime
- Defined in:
- lib/tzinfo/timezone.rb
Overview
AmbiguousTime is raised to indicates that a specified time in a local timezone has more than one possible equivalent UTC time. This happens when transitioning from daylight savings time to standard time where the clocks are rolled back.
AmbiguousTime is raised by period_for_local and local_to_utc when using an ambiguous time and not specifying any means to resolve the ambiguity.