Module RiCal::PropertyValue::DateTime::AdditiveMethods
In: lib/ri_cal/property_value/date_time/additive_methods.rb
  • ©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

Methods

+   -  

Public Instance methods

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

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

[Validate]