Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,12 @@ const FunctionDoc strptime_doc(
("For each string in `strings`, parse it as a timestamp.\n"
"The timestamp unit and the expected string pattern must be given\n"
"in StrptimeOptions. Null inputs emit null. If a non-null string\n"
"fails parsing, an error is returned by default."),
"fails parsing, an error is returned by default.\n"
"\n"
"The `%Z` directive (time zone name) does not set the result's time\n"
"zone or adjust the parsed time. Depending on the platform, it may\n"
"match any word, only some time zone names, or nothing at all.\n"
"Use `%z` to parse UTC offsets."),
{"strings"}, "StrptimeOptions", /*options_required=*/true);
const FunctionDoc assume_timezone_doc{
"Convert naive timestamp to timezone-aware timestamp",
Expand Down
7 changes: 6 additions & 1 deletion docs/source/cpp/compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ provided by a concrete function :func:`~arrow::compute::Cast`.
+-----------------+------------+--------------------+------------------+--------------------------------+-------+
| strftime | Unary | Temporal | String | :struct:`StrftimeOptions` | \(1) |
+-----------------+------------+--------------------+------------------+--------------------------------+-------+
| strptime | Unary | String-like | Timestamp | :struct:`StrptimeOptions` | |
| strptime | Unary | String-like | Timestamp | :struct:`StrptimeOptions` | \(2) |
+-----------------+------------+--------------------+------------------+--------------------------------+-------+

The conversions available with ``cast`` are listed below. In all cases, a
Expand All @@ -1447,6 +1447,11 @@ null input value is converted into a null output value.
The character for the decimal point is localized according to the locale.
See `detailed formatting documentation`_ for descriptions of other flags.

* \(2) The ``%Z`` directive (time zone name) does not set the result's time
zone or adjust the parsed time. Depending on the platform, it may match any
word, only some time zone names, or nothing at all. Use ``%z`` to parse UTC
offsets.

.. _detailed formatting documentation: https://howardhinnant.github.io/date/date.html#to_stream_formatting

**Truth value extraction**
Expand Down
Loading