Skip to content

time: Reliable way to obtain start, end days of a month #31142

@mcandre

Description

@mcandre

Hey, I noticed that the stdlib time package does not offer direct, reliable methods for obtaining the start and end days of a timestamp's month. There are a number of Stack Overflow suggestions, as well as a (reportedly inaccurate) third party package for this.

Would be good to have a standard method to call for this common use case, rather than relying on the community to get complex date and time rules right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions