{"action":"created","issue":{"url":"https://api.github.com/repos/eddelbuettel/anytime/issues/1","repository_url":"https://api.github.com/repos/eddelbuettel/anytime","labels_url":"https://api.github.com/repos/eddelbuettel/anytime/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/eddelbuettel/anytime/issues/1/comments","events_url":"https://api.github.com/repos/eddelbuettel/anytime/issues/1/events","html_url":"https://github.com/eddelbuettel/anytime/issues/1","id":176534329,"number":1,"title":"incorrect time returned from yyyymmddhhmmss","user":{"login":"SymbolixAU","id":18344164,"avatar_url":"https://avatars.githubusercontent.com/u/18344164?v=3","gravatar_id":"","url":"https://api.github.com/users/SymbolixAU","html_url":"https://github.com/SymbolixAU","followers_url":"https://api.github.com/users/SymbolixAU/followers","following_url":"https://api.github.com/users/SymbolixAU/following{/other_user}","gists_url":"https://api.github.com/users/SymbolixAU/gists{/gist_id}","starred_url":"https://api.github.com/users/SymbolixAU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymbolixAU/subscriptions","organizations_url":"https://api.github.com/users/SymbolixAU/orgs","repos_url":"https://api.github.com/users/SymbolixAU/repos","events_url":"https://api.github.com/users/SymbolixAU/events{/privacy}","received_events_url":"https://api.github.com/users/SymbolixAU/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-13T02:41:55Z","updated_at":"2016-09-14T01:41:57Z","closed_at":null,"body":"I often use a timestamp created from `Sys.time()` as a human-readable key (either as a `char` or `int` to show when scripts were run). Getting this back into `POSIXct` with anytime would be a nice addition, however, it doesn't quite get the time stamp correct:\r\n\r\n```\r\nt <- gsub(\"-|:| \", \"\", Sys.time())\r\n> t\r\n[1] \"20160913122601\"\r\n> anytime(t, tz = \"Australia/Melbourne\")\r\n[1] \"2016-09-13 22:01:00 AEST\"  ## the time appears incorrect\r\n```\r\n\r\nIs this something you think should be added?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eddelbuettel/anytime/issues/comments/246880577","html_url":"https://github.com/eddelbuettel/anytime/issues/1#issuecomment-246880577","issue_url":"https://api.github.com/repos/eddelbuettel/anytime/issues/1","id":246880577,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T01:41:57Z","updated_at":"2016-09-14T01:41:57Z","body":"Can you post an example of what you had in mind?   \r\n\r\nIf it is just `DDHHMM(Z)MONYY` already worked/works now with added formats:\r\n\r\n```r\r\nR> anytime:::addFormat(\"%d%H%M%b%y\") \r\nR> anytime(\"132021Sep16\")\r\n[1] \"2016-09-13 20:21:00 CDT\"\r\nR> \r\n```\r\n\r\nI am pretty sure you can (and always could) do the same with `strptime()` ....\r\n"}}
{"actor":{"display_login":"eddelbuettel"}}