We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32ed459 commit ff6dbb3Copy full SHA for ff6dbb3
stdlib/Dates/src/arithmetic.jl
@@ -7,6 +7,7 @@
7
# TimeType arithmetic
8
(+)(x::TimeType) = x
9
(-)(x::T, y::T) where {T<:TimeType} = x.instant - y.instant
10
+(-)(x::T, y::T) where {T<:AbstractDateTime} = x.instant - y.instant
11
(-)(x::AbstractDateTime, y::AbstractDateTime) = -(promote(x, y)...)
12
13
# Date-Time arithmetic
0 commit comments