Skip to content

Commit

Permalink
GH-38528: [Python][Compute] Describe strptime format semantics
Browse files Browse the repository at this point in the history
To prevent possible confusion with the compute strptime function, we now explicitly mention that the C/C++ semantics are followed.
  • Loading branch information
no23reason committed Nov 10, 2023
1 parent cead3dd commit 4dfa21a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyarrow/_compute.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,9 @@ class StrptimeOptions(_StrptimeOptions):
----------
format : str
Pattern for parsing input strings as timestamps, such as "%Y/%m/%d".
Note that the semantics of the format follow the C/C++ strptime, not the Python one:
there can be slight differences in behavior, for example, how the "%y" placeholder
handles years with less than four digits.
unit : str
Timestamp unit of the output.
Accepted values are "s", "ms", "us", "ns".
Expand Down

0 comments on commit 4dfa21a

Please sign in to comment.