Skip to content

[C++][R] strptime fails to parse with %b or %B on Windows #31816

Description

@asfimport

The following works on macOS

library(arrow, warn.conflicts = FALSE)

a <- Array$create("2021 September 13")
call_function("strptime", a, options = list(format = "%Y %B %d", unit = 0L))
#> Array
#> <timestamp[s]>
#> [
#>   2021-09-13 00:00:00
#> ]

but fails on Windows, with:

#> Error: Invalid: Failed to parse string: '2021 September 13' as a scalar of type timestamp[s]

I came across this while implementing the parse_date_time() bindings, when the Windows CI jobs were failing to parse date with the months expressed either as name or short name. https://github.com/apache/arrow/runs/6270529412?check_suite_focus=true#step:20:20856

Reporter: Dragoș Moldovan-Grünfeld / @dragosmg
Watchers: Rok Mihevc / @rok

Related issues:

Note: This issue was originally created as ARROW-16443. Please see the migration documentation for further details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions