Module: RiCal::CoreExtensions::Time::Conversions

Defined in:
lib/ri_cal/core_extensions/time/conversions.rb

Overview

  • ©2009 Rick DeNatale

  • All rights reserved. Refer to the file README.txt for the license

Instance Method Summary collapse

Instance Method Details

#to_ri_cal_date_time_valueObject Also known as: to_ri_cal_date_or_date_time_value

Return an RiCal::PropertyValue::DateTime representing the receiver



9
10
11
# File 'lib/ri_cal/core_extensions/time/conversions.rb', line 9

def to_ri_cal_date_time_value
  RiCal::PropertyValue::DateTime.from_time(self)
end

#to_ri_cal_property_valueObject

Return the natural ri_cal_property for this object



16
17
18
# File 'lib/ri_cal/core_extensions/time/conversions.rb', line 16

def to_ri_cal_property_value
  to_ri_cal_date_time_value
end

#with_floating_timezoneObject

Return a proxy to this object which will be interpreted as a floating time.



21
22
23
# File 'lib/ri_cal/core_extensions/time/conversions.rb', line 21

def with_floating_timezone
  RiCal::TimeWithFloatingTimezone.new(self)
end