Skip to content

Dates allows non-broadcasted arithmatic #28672

@pdeffebach

Description

@pdeffebach

Dates redefines +(::Array{Date}, Date...) = .+, meaning that array + scalar doesn't throw an error.

(-)(x::AbstractArray{T}, y::T) where {T<:TimeType} = x .- y

This should probably be deprecated for consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    datesDates, times, and the Dates stdlib moduledeprecationThis change introduces or involves a deprecation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions