Skip to content
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

BUG: to_datetime(Timestamp) utc argument #24415

Closed
mroeschke opened this issue Dec 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@mroeschke
Copy link
Member

commented Dec 24, 2018

In [7]: pd.to_datetime(pd.Timestamp(2018,1,1), utc=True)
Out[7]: Timestamp('2018-01-01 00:00:00')

# This should raise
In [7]: pd.to_datetime(pd.Timestamp(2018,1,1, tz='US/Pacific'), utc=True)
Out[7]: Timestamp('2018-01-01 00:00:00')

@mroeschke mroeschke changed the title BUG: to_datetime(Timestamp, box=False) doesn't return numpy.datetime64 BUG: to_datetime(Timestamp) ignores box and utc arguments Dec 24, 2018

@jreback

This comment has been minimized.

Copy link
Contributor

commented Dec 24, 2018

to be honest I would actually deprecate box; its not very useful externally.

@mroeschke

This comment has been minimized.

Copy link
Member Author

commented Dec 24, 2018

Sure thing. I'd agree that to_datetime should prioritize keeping values in pandas data structures. Let's create a new issue regarding the deprecation of box in to_datetime and to_timedelta

@mroeschke mroeschke changed the title BUG: to_datetime(Timestamp) ignores box and utc arguments BUG: to_datetime(Timestamp) utc argument Dec 24, 2018

@mroeschke mroeschke added this to the 0.24.0 milestone Dec 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.