Skip to content

Ergonomics for naive::Days and Months #1208

Open
@nathan

Description

@nathan

naive::Days and Months are extremely unergonomic at the moment; it's impossible to recover the number of days/months once one has been constructed, and the constructors Days::new and Months::new are rather verbose.

Would it be possible for chrono to provide From and Into impls for u64/u32 (respectively) and/or make each integer pub so users can construct and destructure them?

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