Skip to content
New issue

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

Issue due to locale-specific translation of character strings with strptime #201

Open
odeleongt opened this issue Sep 13, 2014 · 2 comments · May be fixed by #202 or swirldev/swirl_courses#45
Open

Comments

@odeleongt
Copy link

As reported in thread 138 of the Coursera/rprog-007 discussion forums, strptime translates character strings according to the locale:

# In an English locale the following returns NA, but in a Spanish locale it works:
strptime("Octubre 17, 1986", "%B %d, %Y")

# In a Spanish locale the following returns NA, but in an English locale it works:
strptime("October 17, 1986", "%B %d, %Y")
@ncarchedi
Copy link
Member

Thanks @odeleongt. This is also an issue in our lubridate lesson. I agree it's worth implementing a flexible solution, similar to what you've presented #202.

@reitzig
Copy link

reitzig commented Feb 1, 2016

Seconded. This makes lessons with dates and times quite weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants