Skip to content

Commit

Permalink
Unexport Dates deprecations (#24811)
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb authored and JeffBezanson committed Nov 29, 2017
1 parent d184ef9 commit 578273a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions stdlib/Dates/src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ import Base.range
format(Y::AbstractArray{T}, df::DateFormat=default_format(T)) where {T<:TimeType},
format.(Y, df) )

@deprecate +(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(+, a, b)
@deprecate +(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(+, a, b)
@deprecate -(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(-, a, b)
@deprecate -(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(-, a, b)
@deprecate +(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(+, a, b) false
@deprecate +(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(+, a, b) false
@deprecate -(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(-, a, b) false
@deprecate -(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(-, a, b) false

# #24258
# Physical units define an equivalence class: there is no such thing as a step of "1" (is
# it one day or one second or one nanosecond?). So require the user to specify the step
# (in physical units).
@deprecate colon(start::T, stop::T) where {T<:DateTime} start:Day(1):stop
@deprecate colon(start::T, stop::T) where {T<:Date} start:Day(1):stop
@deprecate colon(start::T, stop::T) where {T<:Time} start:Second(1):stop
@deprecate colon(start::T, stop::T) where {T<:DateTime} start:Day(1):stop false
@deprecate colon(start::T, stop::T) where {T<:Date} start:Day(1):stop false
@deprecate colon(start::T, stop::T) where {T<:Time} start:Second(1):stop false

@deprecate range(start::DateTime, len::Integer) range(start, Day(1), len)
@deprecate range(start::Date, len::Integer) range(start, Day(1), len)
@deprecate range(start::DateTime, len::Integer) range(start, Day(1), len) false
@deprecate range(start::Date, len::Integer) range(start, Day(1), len) false

0 comments on commit 578273a

Please sign in to comment.