Skip to content

DEPR: make to_datetime('now') match Timestamp('now') #45104

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 2 commits into from
Dec 31, 2021

Conversation

jbrockmendel
Copy link
Member

@@ -603,6 +603,7 @@ Other Deprecations
- Deprecated passing non boolean argument to sort in :func:`concat` (:issue:`41518`)
- Deprecated passing arguments as positional for :func:`read_fwf` other than ``filepath_or_buffer`` (:issue:`41485`):
- Deprecated passing ``skipna=None`` for :meth:`DataFrame.mad` and :meth:`Series.mad`, pass ``skipna=True`` instead (:issue:`44580`)
- Deprecated the behavior of :func:`to_datetime` with the string "now" with ``utc=False``; in a future version this will match ``Timestamp("now")``, which in turn matches :meth:`Timestamp.now` (:issue:`18705`)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe good to mention here that Timestamp("now")/Timestamp.now returns local time.

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

One comment otherwise LGTM.

@mroeschke mroeschke added this to the 1.4 milestone Dec 29, 2021
@mroeschke mroeschke added Deprecate Functionality to remove in pandas Datetime Datetime data dtype labels Dec 29, 2021
@jreback
Copy link
Contributor

jreback commented Dec 31, 2021

@jbrockmendel small comment and a rebase and can get this in

@jreback jreback merged commit deca954 into pandas-dev:master Dec 31, 2021
@jbrockmendel jbrockmendel deleted the depr-now branch January 1, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timestamp("now") should match to_datetime("now")
3 participants