Exception: TZInfo::AmbiguousTime
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StandardError
|
|
Instance Chain:
self,
StandardError
|
|
Inherits: |
StandardError
|
Defined in: | lib/tzinfo/timezone.rb |
Overview
AmbiguousTime
is raised to indicate that a specified local time has more
than one possible equivalent UTC time. Such ambiguities arise when the
clocks are set back in a time zone, most commonly during the repeated hour
when transitioning from daylight savings time to standard time.
AmbiguousTime
is raised by Timezone#local_datetime,
Timezone#local_time, Timezone#local_timestamp, Timezone#local_to_utc
and Timezone#period_for_local when using an ambiguous time and not
specifying how to resolve the ambiguity.