Module: CoreEx::Time

Included in:
Time
Defined in:
lib/core_ex/time.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#-(rhs) ⇒ Object



16
17
18
19
# File 'lib/core_ex/time.rb', line 16

def - ( rhs )
  diff = minus_without_d_time(rhs)
  (defined? DTime and rhs.is_a? Time)? DTime.new(diff) : diff
end