Subtracts ‘span units` from wrapped value.
Overloads:
Parameters:
Returns:
Produces Diff, allowing to calculate structured difference between two points in time.
171 172 173
# File 'lib/time_calc/value.rb', line 171 def -(span_or_other, unit = nil) unit.nil? ? Diff.new(self, span_or_other) : self.+(-span_or_other, unit) end