Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`ymd_hms` functions are not picking PM/AM indicator #327
changed the title from
`ymd_hms` funcntions are not picking PM/AM indicator
`ymd_hms` functions are not picking PM/AM indicator
May 20, 2015
This happens on English locales that don't have PM/AM indicator like
Two ways to deal with it.
First option is introduce mandatory english locale parsing that would have lower priority than the current locale. This would essentially double the current overhead and it's also not system independent. You will have to know how standard english locales are names on all OSes. I am not even sure this is possible.
Second option is to deal with AM/PM and day/month english names explicitly at c-parser level. This is directly related to #287. I think this is the most robust, fast and simplest approach.
It also happened on me with Chinese locales. I solved my problem with
I think this problem should be solved by user with either setting locale temporally in one session or specify locale in parsing command.
However it will help a lot if the error messages and function documents include information and examples like this(especially the more obvious set locale to