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

month Maggio (May) not recognized with locale it_IT #306

Closed
matteogrolla opened this Issue Feb 20, 2015 · 7 comments

Comments

Projects
None yet
2 participants
@matteogrolla

ymd("1975, maggio 12")
[1] NA
Warning message:
All formats failed to parse. No formats found.

dmy("12 maggio 1975")
[1] NA
Warning message:
All formats failed to parse. No formats found.

@vspinu

This comment has been minimized.

Show comment
Hide comment
@vspinu

vspinu Feb 20, 2015

Member

What do format(ymd("1975-05-12"), "%b") and format(ymd("1975-05-12"), "%B") return?

I guess it's a capitalization issue. Does the dmy("12 Maggio 1975") work?

Member

vspinu commented Feb 20, 2015

What do format(ymd("1975-05-12"), "%b") and format(ymd("1975-05-12"), "%B") return?

I guess it's a capitalization issue. Does the dmy("12 Maggio 1975") work?

@matteogrolla

This comment has been minimized.

Show comment
Hide comment
@matteogrolla

matteogrolla Feb 20, 2015

dmy("12 Maggio 1975")
[1] NA
Warning message:
All formats failed to parse. No formats found.

format(ymd("1975-05-12"), "%b")
[1] "Mag"

format(ymd("1975-05-12"), "%B")
[1] "Maggio"

dmy("12 Maggio 1975")
[1] NA
Warning message:
All formats failed to parse. No formats found.

format(ymd("1975-05-12"), "%b")
[1] "Mag"

format(ymd("1975-05-12"), "%B")
[1] "Maggio"

@vspinu

This comment has been minimized.

Show comment
Hide comment
@vspinu

vspinu Feb 20, 2015

Member

That's strange. Can you parse it with strptime("1975 Maggio 12", "%Y %B %d")?

Member

vspinu commented Feb 20, 2015

That's strange. Can you parse it with strptime("1975 Maggio 12", "%Y %B %d")?

@matteogrolla

This comment has been minimized.

Show comment
Hide comment
@matteogrolla

matteogrolla Feb 20, 2015

strptime("1975 Maggio 12", "%Y %B %d")
[1] "1975-05-12 CET"

strptime("1975 Maggio 12", "%Y %B %d")
[1] "1975-05-12 CET"

@vspinu

This comment has been minimized.

Show comment
Hide comment
@vspinu

vspinu Feb 20, 2015

Member

Ok. It's our bug. I will install Italian locale and will try to reproduce and fix asap.

Member

vspinu commented Feb 20, 2015

Ok. It's our bug. I will install Italian locale and will try to reproduce and fix asap.

@vspinu vspinu added the bug label Feb 20, 2015

@matteogrolla

This comment has been minimized.

Show comment
Hide comment
@matteogrolla

matteogrolla Feb 20, 2015

Wonderful, thanks!

Wonderful, thanks!

@vspinu vspinu closed this in cb3b6d5 Apr 23, 2015

@vspinu

This comment has been minimized.

Show comment
Hide comment
@vspinu

vspinu Apr 23, 2015

Member

It turned out that abreviated day for Sunday is "gio" which was interfering with "maggio". So lubridate was trying %y-%b%a-%d format. Should be fixed now.

Member

vspinu commented Apr 23, 2015

It turned out that abreviated day for Sunday is "gio" which was interfering with "maggio". So lubridate was trying %y-%b%a-%d format. Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment