[
https://issues.apache.org/jira/browse/ARROW-15813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514084#comment-17514084
]
Jonathan Keane commented on ARROW-15813:
----------------------------------------
FWIW, in the [R
docs|https://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.html] it
describes the process as "Each input string is processed as far as necessary
for the format specified: any trailing characters are ignored." which is
slightly different from a floor-like action (though agree with Joris: that
might not even be possible )
> [R]strptime should support partial format
> -----------------------------------------
>
> Key: ARROW-15813
> URL: https://issues.apache.org/jira/browse/ARROW-15813
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Dragoș Moldovan-Grünfeld
> Priority: Major
>
> In base R we can use {{strptime}} to parse and extract parts from a datetime
> by passing a restricted format.
> {code:r}
> > strptime("2012-05-25 18:45:32", format = "%Y-%m-%d")
> [1] "2012-05-25 BST"
> > strptime("2012-05-25 18:45:32", format = "%Y-%m-%d %H")
> [1] "2012-05-25 18:00:00 BST
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)