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