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
36 37 38 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 36 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
40 41 42 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 40 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
31 32 33 |
# File 'lib/ri_cal/core_extensions/time/tzid_access.rb', line 31 def tzid utc? ? "UTC" : time_zone.tzinfo.identifier end |