We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R strptime() documents that % in date/time/datetime can be escaped as %%:
strptime()
%
%%
Any character in the format string not part of a conversion specification is interpreted literally (and %% gives %).
This works indeed:
strptime("2011-01-03%", format = "%Y-%m-%d%%")
The Python implementation suggests the same (last element of table at https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior).
But trying this in readr::parse_date() gives a fatal error:
readr::parse_date()
library(readr) parse_date("2011-01-03%", format = "%Y-%m-%d%%")
Granted, readr doesn't claim to support this escape, but given that it seems to be a standard elsewhere, it would probably be good to handle it. 😄
The text was updated successfully, but these errors were encountered:
This is a duplicate of #1151 and #1182, it is already fixed in the development version of readr.
Sorry, something went wrong.
No branches or pull requests
R
strptime()
documents that%
in date/time/datetime can be escaped as%%
:This works indeed:
The Python implementation suggests the same (last element of table at https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior).
But trying this in
readr::parse_date()
gives a fatal error:Granted, readr doesn't claim to support this escape, but given that it seems to be a standard elsewhere, it would probably be good to handle it. 😄
The text was updated successfully, but these errors were encountered: