©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
Methods for DateTime which support adding or subtracting another DateTime or Duration
Return the sum of the receiver and duration
The parameter other duration should be a RiCal::PropertyValue::Duration
The result will be an RiCal::PropertyValue::DateTime
# File lib/ri_cal/property_value/date_time/additive_methods.rb, line 38 def +(duration) duration.add_to_date_time_value(self) end
Return the difference between the receiver and other
The parameter other should be either a RiCal::PropertyValue::Duration or a RiCal::PropertyValue::DateTime
If other is a Duration, the result will be a DateTime, if it is a DateTime the result will be a Duration
# File lib/ri_cal/property_value/date_time/additive_methods.rb, line 29 def -(other) other.subtract_from_date_time_value(self) end
Generated with the Darkfish Rdoc Generator 2.