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
I'm having an issue with parse_date and parse_datetime recognizing %b (abbreviated name in current locale). Do I need to change LC_TIME?
parse_date
parse_datetime
as.Date("1jan1960", "%d%b%Y") [1] "1960-01-01" parse_date("1jan1960", "%d%b%Y") [1] NA Warning message: 1 problems parsing input. See problems(...) for more details.
strptime("1jan1960", "%d%b%Y") [1] "1960-01-01 UTC" parse_datetime("1jan1960", "%d%b%Y") [1] NA Warning message: 1 problems parsing input. See problems(...) for more details.
sessionInfo() R version 3.1.3 (2015-03-09) Platform: x86_64-unknown-linux-gnu (64-bit) Running under: CentOS release 6.6 (Final) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 [4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] readr_0.1.0 stringr_0.6.2 RevoUtilsMath_7.4.0 RevoUtils_7.4.0 [5] RevoMods_7.4.0 RevoScaleR_7.4.0 lattice_0.20-30 rpart_4.1-9 loaded via a namespace (and not attached): [1] codetools_0.2-10 foreach_1.4.2 grid_3.1.3 iterators_1.0.7 Rcpp_0.11.5 [6] tools_3.1.3
The text was updated successfully, but these errors were encountered:
That's currently a known problem :/
Sorry, something went wrong.
The problem here is actually capitalisation. This works:
parse_date("1 Jan 1960", "%d %b %Y")
ab990b7
No branches or pull requests
I'm having an issue with
parse_date
andparse_datetime
recognizing %b (abbreviated name in current locale). Do I need to change LC_TIME?The text was updated successfully, but these errors were encountered: