Method: TZInfo::TimeOrDateTime#-

Defined in:
lib/tzinfo/time_or_datetime.rb

#-(seconds) ⇒ Object

Subtracts a number of seconds from the TimeOrDateTime. Returns a new TimeOrDateTime, preserving what the original constructed type was. If the original type is a Time and the resulting calculation goes out of range for Times, then an exception will be raised by the Time class.



276
277
278
# File 'lib/tzinfo/time_or_datetime.rb', line 276

def -(seconds)
  self + (-seconds)
end