Skip to content

Deprecate nonsensical commutative Dates subtraction methods #20205

@tkelman

Description

@tkelman

See https://github.com/JuliaLang/julia/pull/12274/files#r96932819 - for the ones that just got added we should delete them immediately, for the ones that have been around longer we can go through a deprecation cycle. Can anyone explain if these are useful or correct in any context?

julia> Dates.Day(1) - Date(2016, 1, 1)
2015-12-31

julia> Dates.Hour(24) - Dates.Time(Dates.Hour(1))
01:00:00

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions