{"action":"created","issue":{"url":"https://api.github.com/repos/tidyverse/lubridate/issues/2","repository_url":"https://api.github.com/repos/tidyverse/lubridate","labels_url":"https://api.github.com/repos/tidyverse/lubridate/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tidyverse/lubridate/issues/2/comments","events_url":"https://api.github.com/repos/tidyverse/lubridate/issues/2/events","html_url":"https://github.com/tidyverse/lubridate/issues/2","id":20030,"number":2,"title":"BC dates","user":{"login":"garrettgman","id":85014,"avatar_url":"https://avatars3.githubusercontent.com/u/85014?v=4","gravatar_id":"","url":"https://api.github.com/users/garrettgman","html_url":"https://github.com/garrettgman","followers_url":"https://api.github.com/users/garrettgman/followers","following_url":"https://api.github.com/users/garrettgman/following{/other_user}","gists_url":"https://api.github.com/users/garrettgman/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettgman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettgman/subscriptions","organizations_url":"https://api.github.com/users/garrettgman/orgs","repos_url":"https://api.github.com/users/garrettgman/repos","events_url":"https://api.github.com/users/garrettgman/events{/privacy}","received_events_url":"https://api.github.com/users/garrettgman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2009-05-27T19:27:28Z","updated_at":"2018-03-04T18:17:09Z","closed_at":"2015-09-30T15:10:28Z","author_association":"COLLABORATOR","body":"Remember to self: consider BC dates and time (Before Christ/ Before Common Era)\n- Garrett\n"},"comment":{"url":"https://api.github.com/repos/tidyverse/lubridate/issues/comments/370250701","html_url":"https://github.com/tidyverse/lubridate/issues/2#issuecomment-370250701","issue_url":"https://api.github.com/repos/tidyverse/lubridate/issues/2","id":370250701,"user":{"login":"niklaas","id":705637,"avatar_url":"https://avatars2.githubusercontent.com/u/705637?v=4","gravatar_id":"","url":"https://api.github.com/users/niklaas","html_url":"https://github.com/niklaas","followers_url":"https://api.github.com/users/niklaas/followers","following_url":"https://api.github.com/users/niklaas/following{/other_user}","gists_url":"https://api.github.com/users/niklaas/gists{/gist_id}","starred_url":"https://api.github.com/users/niklaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklaas/subscriptions","organizations_url":"https://api.github.com/users/niklaas/orgs","repos_url":"https://api.github.com/users/niklaas/repos","events_url":"https://api.github.com/users/niklaas/events{/privacy}","received_events_url":"https://api.github.com/users/niklaas/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T18:17:09Z","updated_at":"2018-03-04T18:17:09Z","author_association":"NONE","body":"Well, not that I use this regularly but I just worked on a dataset that had negative years i.e., BC, included and had quite some difficulties to deal with it. E.g. the following doesn't work:\r\n\r\n```\r\n> lubridate::ymd(\"-2255-01-01\")\r\n[1] \"2255-01-01\"\r\n```\r\n\r\nbecause a Date object with positive year is returned. That said, the following works:\r\n\r\n```\r\n> lubridate::ymd(\"0000-01-01\") - lubridate::years(2255)\r\n[1] \"-2255-01-01\"\r\n```\r\n\r\nwhich made me write a helper function that deals with negative years."}}
{"actor":{"display_login":"niklaas"}}