Method: Time#-

Defined in:
lib/when_exe/core/duration.rb

#-(other) ⇒ ::Time

減算

Parameters:

  • other (When::TM::Duration)

    減じる時間間隔(他の型の場合は動作に変更なし)

Returns:



100
101
102
# File 'lib/when_exe/core/duration.rb', line 100

def -(other)
  other.kind_of?(When::TM::Duration) ? self - other.to_f : self._minus_(other)
end