Method: OpenHAB::CoreExt::Java::LocalTime#-

Defined in:
lib/openhab/core_ext/java/local_time.rb

#-(other) ⇒ LocalTime

Parameters:

Returns:



74
75
76
77
78
79
80
# File 'lib/openhab/core_ext/java/local_time.rb', line 74

def -(other)
  return minus(other.seconds) if other.is_a?(Numeric)
  return self if other.is_a?(Period)

  other = other.to_temporal_amount if other.is_a?(QuantityType)
  minus(other)
end