Skip to content

ENH: Add timetz attribute to DatetimeIndex and Timestamp #21358

Closed
@mroeschke

Description

@mroeschke

Currently DatetimeIndex.time returns a numpy array of local datetime.times. In #18461, the resulting datetime.times gained timezone information (but was an undocumented changed) and was subsequently reverted in #21281. Having .time return timezone information would still be a nice enhancement.

If we allow DatetimeIndex.time to return timezone information, timeseries.rst will need to be changed since it currently indicates that .time does not return timezone information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds DiscussionRequires discussion from core team before further actionTimezonesTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions