Skip to content

BUG+DEPR: Timestamp.fromtimestamp tz arg #45083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 28, 2021

Conversation

jbrockmendel
Copy link
Member

@mroeschke mroeschke added this to the 1.4 milestone Dec 28, 2021
@mroeschke mroeschke added the Timezones Timezone data dtype label Dec 28, 2021
return cls(datetime.utcfromtimestamp(ts))

@classmethod
def fromtimestamp(cls, ts):
def fromtimestamp(cls, ts, tz=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type generally if possible (followup ok)

@jreback jreback added the Deprecate Functionality to remove in pandas label Dec 28, 2021
@jreback jreback merged commit 358eaec into pandas-dev:master Dec 28, 2021
@jbrockmendel jbrockmendel deleted the depr-utcfromtimestamp branch December 28, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.Timestamp.utcfromtimestamp should return tzaware
3 participants