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
Possible bug in parse_date_time
or inconsistency
#326
Comments
This is a bug. For completeness, from your other post:
BTW, if you want to match |
The problem may came from the system locale have different string for AM/PM indicator. I was having a Chinese locale, US time zone in Windows. Once I set the locale right, the problem solved.
I did have to use See more details on this. So this could be not really a bug, but it will help a lot if the error messages and function documents include information and examples like this. I believe this problem is actually quite common: there are many people using system locale other than English but need to read time format in English. EDIT: Yes I messed up a little in finding examples in all previous attempts. The |
Your post is a unrelated to this issue and a bit misleading. You cannot have solved it with locales because You are right about AM/PM though. See #327 for |
Tthere are two ways lubridate infers formats, flex and exact. With flex matching all numeric elements can have flexible length (for example In your example
you want to perform flex matching on the date part Instead, I am fixing it by adding a new argument to |
Thanks for clarifying. I realized part of the formats convention in reading document but not fully. I think the document for
Format strings without "!" are not supported by I'd suggest to mark each format string's availability with some thing like this:
|
Yeh. I am trying to improve that doc without increasing its size. Suggestions are welcome.
I am changing it into Would that work? |
This is much better! Thanks! Do you think add explicit marks like I think the file size is not really relevant since it's just text. I don't want the page too cluttered too, but I do believe the format like
is much easier to read and didn't need any extra line. The main problem I have with ! is that this usage is not general enough so user don't have the intuitive when he is reading. |
I understand your problem, but I don't like to have long repetitions in the doc. I cannot control how Rd outputstables so the paragraphs will be shifted to the right. I think once you know what |
Possible bug ? in
parse_date_time
-- see this SO post for more detail.Long and short = why does the first method fail in light of the other methods working?
The text was updated successfully, but these errors were encountered: