From 76c6ee81cbe73b8f0ae705abd8171e277114007c Mon Sep 17 00:00:00 2001 From: Ian Fiske <135570+ianfiske@users.noreply.github.com> Date: Fri, 25 Sep 2020 09:59:10 -0400 Subject: [PATCH] Define `isnan` for AbstractTime Fix https://github.com/JuliaLang/Statistics.jl/issues/53 --- stdlib/Dates/src/types.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/Dates/src/types.jl b/stdlib/Dates/src/types.jl index 4c338d5b765d7..3cbf2e4ca6e66 100644 --- a/stdlib/Dates/src/types.jl +++ b/stdlib/Dates/src/types.jl @@ -454,3 +454,5 @@ end Base.OrderStyle(::Type{<:AbstractTime}) = Base.Ordered() Base.ArithmeticStyle(::Type{<:AbstractTime}) = Base.ArithmeticWraps() + +Base.isnan(::AbstractTime) = false