Skip to content

Add "days are always 24 hours" opt-in support to Timestamp APIs #448

@BurntSushi

Description

@BurntSushi

Currently, all APIs on Timestamp return an error when a Span is provided with units bigger than hours. The docs suggest converting the Timestamp to a Zoned if one wants to use a Span with bigger units. But as with the Span APIs, perhaps we should permit these APIs to be used with units of weeks/days if the caller explicitly opts into treating them as invariant units.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions