Class: TZInfo::OffsetTimezonePeriod
- Inherits:
-
TimezonePeriod
- Object
- TimezonePeriod
- TZInfo::OffsetTimezonePeriod
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb
Overview
Represents the infinite period of time in a time zone that constantly observes the same offset from UTC (has an unbounded start and end).
Instance Attribute Summary
Attributes inherited from TimezonePeriod
Instance Method Summary collapse
-
#==(p) ⇒ Boolean
(also: #eql?)
Determines if this OffsetTimezonePeriod is equal to another instance.
-
#end_transition ⇒ TimezoneTransition
The transition that defines the end of this TimezonePeriod, always ‘nil` for OffsetTimezonePeriod.
-
#hash ⇒ Integer
A hash based on TimezonePeriod#offset.
-
#initialize(offset) ⇒ OffsetTimezonePeriod
constructor
Initializes an OffsetTimezonePeriod.
-
#start_transition ⇒ TimezoneTransition
The transition that defines the start of this TimezonePeriod, always ‘nil` for OffsetTimezonePeriod.
Methods inherited from TimezonePeriod
#abbreviation, #base_utc_offset, #dst?, #ends_at, #local_ends_at, #local_starts_at, #observed_utc_offset, #starts_at, #std_offset
Constructor Details
#initialize(offset) ⇒ OffsetTimezonePeriod
Initializes an TZInfo::OffsetTimezonePeriod.
11 12 13 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb', line 11 def initialize(offset) super end |
Instance Method Details
#==(p) ⇒ Boolean Also known as: eql?
Determines if this TZInfo::OffsetTimezonePeriod is equal to another instance.
32 33 34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb', line 32 def ==(p) p.kind_of?(OffsetTimezonePeriod) && offset == p.offset end |
#end_transition ⇒ TimezoneTransition
Returns the transition that defines the end of this TimezonePeriod, always ‘nil` for TZInfo::OffsetTimezonePeriod.
23 24 25 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb', line 23 def end_transition nil end |
#hash ⇒ Integer
Returns a hash based on TimezonePeriod#offset.
38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb', line 38 def hash offset.hash end |
#start_transition ⇒ TimezoneTransition
Returns the transition that defines the start of this TimezonePeriod, always ‘nil` for TZInfo::OffsetTimezonePeriod.
17 18 19 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/offset_timezone_period.rb', line 17 def start_transition nil end |