Skip to content

Inconsistent resulting types for zero and one for Dates #36099

@jagot

Description

@jagot
julia> using Dates

julia> x = Date(2020):Week(1):Date(2021)
2020-01-01:1 week:2020-12-30

julia> dx = step(x)
1 week

julia> zero(dx)
0 weeks

julia> one(dx)
1

CC @mcabbott

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions