{"action":"created","issue":{"url":"https://api.github.com/repos/magplus/good_times/issues/39","labels_url":"https://api.github.com/repos/magplus/good_times/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/magplus/good_times/issues/39/comments","events_url":"https://api.github.com/repos/magplus/good_times/issues/39/events","html_url":"https://github.com/magplus/good_times/pull/39","id":63443480,"number":39,"title":"Add ~d, ~t, and ~D sigils for constructing dates, times, and datetimes.","user":{"login":"DevL","id":201944,"avatar_url":"https://avatars.githubusercontent.com/u/201944?v=3","gravatar_id":"","url":"https://api.github.com/users/DevL","html_url":"https://github.com/DevL","followers_url":"https://api.github.com/users/DevL/followers","following_url":"https://api.github.com/users/DevL/following{/other_user}","gists_url":"https://api.github.com/users/DevL/gists{/gist_id}","starred_url":"https://api.github.com/users/DevL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevL/subscriptions","organizations_url":"https://api.github.com/users/DevL/orgs","repos_url":"https://api.github.com/users/DevL/repos","events_url":"https://api.github.com/users/DevL/events{/privacy}","received_events_url":"https://api.github.com/users/DevL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/magplus/good_times/milestones/4","html_url":"https://github.com/magplus/good_times/milestones/1.1.0","labels_url":"https://api.github.com/repos/magplus/good_times/milestones/4/labels","id":1032318,"number":4,"title":"1.1.0","description":"","creator":{"login":"DevL","id":201944,"avatar_url":"https://avatars.githubusercontent.com/u/201944?v=3","gravatar_id":"","url":"https://api.github.com/users/DevL","html_url":"https://github.com/DevL","followers_url":"https://api.github.com/users/DevL/followers","following_url":"https://api.github.com/users/DevL/following{/other_user}","gists_url":"https://api.github.com/users/DevL/gists{/gist_id}","starred_url":"https://api.github.com/users/DevL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevL/subscriptions","organizations_url":"https://api.github.com/users/DevL/orgs","repos_url":"https://api.github.com/users/DevL/repos","events_url":"https://api.github.com/users/DevL/events{/privacy}","received_events_url":"https://api.github.com/users/DevL/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-03-21T19:30:47Z","updated_at":"2015-03-21T19:32:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-21T19:17:09Z","updated_at":"2015-03-22T21:20:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/magplus/good_times/pulls/39","html_url":"https://github.com/magplus/good_times/pull/39","diff_url":"https://github.com/magplus/good_times/pull/39.diff","patch_url":"https://github.com/magplus/good_times/pull/39.patch"},"body":"This PR adds three sigils that can be used to create dates, times, and datetimes.\r\n\r\nI'm considering merging some or all of these sigils into one, letting it handle different inputs and use modifiers to determine the return value.\r\n\r\nE.g. using the modifier `d` to return a `date` rather than a `datetime`. This would be [similar](http://elixir-lang.org/getting-started/sigils.html#word-lists) to the way `~w` works with it's modifiers `a`, `c`, and `s.`\r\n\r\n```elixir\r\niex> ~D(2015-03-21 19:16:45)\r\n{{2015, 3, 21}, {19, 16, 45}}\r\n\r\niex> ~D(2015-03-21 19:16:45)d\r\n{2015, 3, 21}\r\n\r\niex> ~D(2015-03-21)\r\n{{2015, 3, 21}, {0, 0, 0}}\r\n\r\niex> ~D(2015-03-21)d\r\n{2015, 3, 21}\r\n```\r\n\r\nNot sure how to handle times in this case. The modifier `t` can of course be used to return the time portion and the input parsing could handle `~D(12:15:30)t`, but then `~D(12:15:30)` would hardly make any sense (see our previous discussion on a `from_time` conversion function). "},"comment":{"url":"https://api.github.com/repos/magplus/good_times/issues/comments/84708244","html_url":"https://github.com/magplus/good_times/pull/39#issuecomment-84708244","issue_url":"https://api.github.com/repos/magplus/good_times/issues/39","id":84708244,"user":{"login":"DevL","id":201944,"avatar_url":"https://avatars.githubusercontent.com/u/201944?v=3","gravatar_id":"","url":"https://api.github.com/users/DevL","html_url":"https://github.com/DevL","followers_url":"https://api.github.com/users/DevL/followers","following_url":"https://api.github.com/users/DevL/following{/other_user}","gists_url":"https://api.github.com/users/DevL/gists{/gist_id}","starred_url":"https://api.github.com/users/DevL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevL/subscriptions","organizations_url":"https://api.github.com/users/DevL/orgs","repos_url":"https://api.github.com/users/DevL/repos","events_url":"https://api.github.com/users/DevL/events{/privacy}","received_events_url":"https://api.github.com/users/DevL/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T21:20:33Z","updated_at":"2015-03-22T21:20:33Z","body":"Working on a slightly different version of this PR, using modifiers instead of multiple sigils."}}