Class | TZInfo::TimezonePeriod |
In: |
lib/tzinfo/timezone_period.rb
|
Parent: | Object |
A period of time in a timezone where the same offset from UTC applies.
All the methods that take times accept instances of Time, DateTime or integer timestamps.
end_transition | [R] | The TimezoneTransitionInfo that defines the end of this TimezonePeriod (may be nil if unbounded). |
offset | [R] | The TimezoneOffsetInfo for this period. |
start_transition | [R] | The TimezoneTransitionInfo that defines the start of this TimezonePeriod (may be nil if unbounded). |
Returns true if this TimezonePeriod is equal to p. This compares the start_transition, end_transition and offset using ==.
The identifier of this period, e.g. "GMT" (Greenwich Mean Time) or "BST" (British Summer Time) for "Europe/London". The returned identifier is a symbol.
Returns true if this TimezonePeriods is equal to p. This compares the start_transition, end_transition and offset using eql?
Offset from the local time where daylight savings is in effect (seconds). E.g.: utc_offset could be -5 hours. Normally, std_offset would be 0. During daylight savings, std_offset would typically become +1 hours.