Skip to content

ENH: datetime64: Remove deprecation warning when constructing with timezone #23904

@alkhwarizmi

Description

@alkhwarizmi

Proposed new feature or change:

Dear all,

the command t0 = np.datetime64('2023-06-09T12:18:40Z', 'ns') produces the warning

DeprecationWarning: parsing timezone aware datetimes is deprecated; this will raise an error in the future

I propose, like others before me, to remove the deprecation warning when constructing datetime64 objects with timezones, because it is a useful and correct feature. Here and here Dr. Yorav-Raphael already raised and well motivated the reasons. I fully share his view and agree with his discussion.

The fact that after 3 years from his call I still see the warning, lets me think that in fact his view passed and the feature is not really going to be removed in future. Therefore, it is just matter to remove the deprecation warning. This would relax me and the colleagues of mine who are relying on this useful conversion.

Sincerely,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Completed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions