diff --git a/src/TimeSpans.jl b/src/TimeSpans.jl index a304f45..5461d97 100644 --- a/src/TimeSpans.jl +++ b/src/TimeSpans.jl @@ -133,11 +133,11 @@ function translate(span, by::Period) end """ - TimeSpans.contains(a, b) + Base.contains(a::TimeSpan, b::Union{TimeSpan,Period}) Return `true` if the timespan `b` lies entirely within the timespan `a`, return `false` otherwise. """ -contains(a, b) = start(a) <= start(b) && stop(a) >= stop(b) +Base.contains(a::TimeSpan, b::Union{TimeSpan,Period}) = start(a) <= start(b) && stop(a) >= stop(b) """ overlaps(a, b)