Class: RiCal::Component::Timezone::StandardPeriod

Inherits:
RiCal.TimezonePeriod
  • Object
show all
Defined in:
lib/ri_cal/component/timezone/standard_period.rb

Overview

  • ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license

A StandardPeriod is a TimezonePeriod during which daylight saving time is not in effect

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.entity_nameObject

:nodoc: all


9
10
11
# File 'lib/ri_cal/component/timezone/standard_period.rb', line 9

def self.entity_name #:nodoc:
  "STANDARD"
end

Instance Method Details

#ambiguous_local?(time) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/ri_cal/component/timezone/standard_period.rb', line 17

def ambiguous_local?(time)
  [time.year, time.month, time.day] == [dtstart.year, dtstart.month, dtstart.day]
end

#dst?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/ri_cal/component/timezone/standard_period.rb', line 13

def dst?
  false
end