Module: RiCal::TimeWithZoneExtension
- Defined in:
- lib/ri_cal/core_extensions/time/tzid_access.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#has_floating_timezone? ⇒ Boolean
Predicate indicating whether or not the instance represents a floating time.
- #to_ri_cal_date_time_value(timezone_finder = nil) ⇒ Object (also: #to_ri_cal_date_or_date_time_value, #to_ri_cal_occurrence_list_value)
- #tzid ⇒ Object
Instance Method Details
#has_floating_timezone? ⇒ Boolean
Predicate indicating whether or not the instance represents a floating time
33 34 35 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 33 def has_floating_timezone? false end |
#to_ri_cal_date_time_value(timezone_finder = nil) ⇒ Object Also known as: to_ri_cal_date_or_date_time_value, to_ri_cal_occurrence_list_value
37 38 39 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 37 def to_ri_cal_date_time_value(timezone_finder=nil) ::RiCal::PropertyValue::DateTime.new(timezone_finder, :params => {"TZID" => tzid}, :value => strftime("%Y%m%dT%H%M%S")) end |
#tzid ⇒ Object
28 29 30 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 28 def tzid utc? ? "UTC" : time_zone.tzinfo.identifier end |