You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dragoș Moldovan-Grünfeld (Jira)" <ji...@apache.org> on 2022/03/01 10:50:00 UTC
[jira] [Created] (ARROW-15813) [R]strptime should support partial format
Dragoș Moldovan-Grünfeld created ARROW-15813:
------------------------------------------------
Summary: [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
In base R we can return just the parts from a date time 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)