Convert time interval to seconds?

Perhaps tosecond{T}(t::T) = t / convert(T, Base.Dates.Second(1))?

4 Likes