-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to_timestamps to support Z for %z format specifier (#10617)
Closes #10609 This adds support for 'Z' in a timestamp string for the `%z` specifier. Normally, the `%z` specifier expects an hour-minute format like `+HHMM` but strptime and other libraries also accept a single 'Z' here. The following two strings should result in the same timestamp value: `"2022-04-07 09:15:00Z" and "2022-04-07 09:15:00+0000"` The `cudf::strings::is_timestamp` and `cudf::strings::to_timestamps` have been updated to support this behavior. A gtest was updated to include this as a testcase. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) - Mike Wilson (https://github.com/hyperbolic2346) URL: #10617
- Loading branch information
1 parent
10b26b2
commit c8ffece
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters