Skip to content

Commit

Permalink
Raise a NotImplementedError in to_datetime when utc is passed (#13670)
Browse files Browse the repository at this point in the history
While we figure out a solution for #13661, this PR ensures that we correctly raise a `NotImplementedError`.

Authors:
  - Ashwin Srinath (https://github.com/shwina)

Approvers:
  - Matthew Roeschke (https://github.com/mroeschke)

URL: #13670
  • Loading branch information
shwina authored Jul 10, 2023
1 parent 2ca4630 commit 964925a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/cudf/cudf/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ def to_datetime(
if yearfirst:
raise NotImplementedError("yearfirst support is not yet implemented")

if utc:
raise NotImplementedError("utc is not yet implemented")

if format is not None and "%f" in format:
format = format.replace("%f", "%9f")

Expand Down

0 comments on commit 964925a

Please sign in to comment.