Skip to content

Using Dates.Time as dictionary keys #29480

@marekkukan-tw

Description

@marekkukan-tw

I found this problem when I tried using Dates.Time as dictionary keys:

julia> a = Dates.Time(0)
00:00:00

julia> b = Dates.Time(0) + Dates.Hour(24)
00:00:00

julia> a == b
true

julia> isequal(a, b)
true

julia> hash(a) == hash(b)
false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviordatesDates, times, and the Dates stdlib module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions