X Tutup
The Wayback Machine - https://web.archive.org/web/20250610135749/https://github.com/python/cpython/issues/94340
Skip to content

converting datetime object to year and quarter #94340

Closed
@Godskid89

Description

@Godskid89

Feature or enhancement

Conversion of Datetime object to year and quarter

Pitch

This feature will allow us to be able to get quarters and years easily from datetime objects without extra calculation

Example: Datetime object => datetime.datetime(2022, 6, 27, 17, 51, 34, 797197)
converted to '2022-Q2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup