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.
262 263 264 |
# File 'lib/tzinfo/time_or_datetime.rb', line 262 def -(seconds) self + (-seconds) end |