{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/lubridate/issues/326","labels_url":"https://api.github.com/repos/hadley/lubridate/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/hadley/lubridate/issues/326/comments","events_url":"https://api.github.com/repos/hadley/lubridate/issues/326/events","html_url":"https://github.com/hadley/lubridate/issues/326","id":78336699,"number":326,"title":"Possible bug in `parse_date_time` or inconsistency","user":{"login":"JasonAizkalns","id":5184911,"avatar_url":"https://avatars.githubusercontent.com/u/5184911?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonAizkalns","html_url":"https://github.com/JasonAizkalns","followers_url":"https://api.github.com/users/JasonAizkalns/followers","following_url":"https://api.github.com/users/JasonAizkalns/following{/other_user}","gists_url":"https://api.github.com/users/JasonAizkalns/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonAizkalns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonAizkalns/subscriptions","organizations_url":"https://api.github.com/users/JasonAizkalns/orgs","repos_url":"https://api.github.com/users/JasonAizkalns/repos","events_url":"https://api.github.com/users/JasonAizkalns/events{/privacy}","received_events_url":"https://api.github.com/users/JasonAizkalns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T02:24:33Z","updated_at":"2015-05-20T02:24:33Z","closed_at":null,"body":"Possible bug ? in `parse_date_time` -- see this [SO](http://stackoverflow.com/questions/30338735/why-r-package-lubridate-cant-parse-vector-with-multiple-formats?noredirect=1#comment48771858_30338735) post for more detail.\r\n\r\nLong and short = why does the first method fail in light of the other methods working?\r\n\r\n```{r}\r\n#### This fails ####\r\nparse_date_time('4/18/1950 0130', '%m%d%Y %H%M')\r\n# [1] NA\r\n# Warning message:\r\n# All formats failed to parse. No formats found.\r\n\r\n#### But all of these work ####\r\nparse_date_time('4/18/1950', '%m%d%Y')\r\n# [1] \"1950-04-18 UTC\"\r\n\r\nparse_date_time('4/18/1950 01', '%m%d%Y %H')\r\n# [1] \"1950-04-18 01:00:00 UTC\"\r\n\r\nparse_date_time('04/18/1950 0130', '%m%d%Y %H%M')\r\n# [1] \"1950-04-18 01:30:00 UTC\"\r\n\r\nparse_date_time('4/18/1950 01:30', '%m%d%Y %H%M')\r\n# [1] \"1950-04-18 01:30:00 UTC\"\r\n```\r\n"}}