{"action":"created","issue":{"url":"https://api.github.com/repos/HipByte/Flow/issues/1","labels_url":"https://api.github.com/repos/HipByte/Flow/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/HipByte/Flow/issues/1/comments","events_url":"https://api.github.com/repos/HipByte/Flow/issues/1/events","html_url":"https://github.com/HipByte/Flow/issues/1","id":121994491,"number":1,"title":"Idea : Date library","user":{"login":"bmichotte","id":235510,"avatar_url":"https://avatars.githubusercontent.com/u/235510?v=3","gravatar_id":"","url":"https://api.github.com/users/bmichotte","html_url":"https://github.com/bmichotte","followers_url":"https://api.github.com/users/bmichotte/followers","following_url":"https://api.github.com/users/bmichotte/following{/other_user}","gists_url":"https://api.github.com/users/bmichotte/gists{/gist_id}","starred_url":"https://api.github.com/users/bmichotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmichotte/subscriptions","organizations_url":"https://api.github.com/users/bmichotte/orgs","repos_url":"https://api.github.com/users/bmichotte/repos","events_url":"https://api.github.com/users/bmichotte/events{/privacy}","received_events_url":"https://api.github.com/users/bmichotte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-14T08:15:30Z","updated_at":"2015-12-14T10:17:54Z","closed_at":null,"body":"It's always a mess to play with dates. Especially with `NSDate` on iOS and `Calendar` stuff on Android.\r\n\r\nBased on the api from [Sugarcube](https://github.com/rubymotion/sugarcube/wiki/NSDate), we could add\r\n\r\n## Fixnum\r\n- Fixnum.hour(s), Fixnum.minute(s), Fixnum.second(s), Fixnum.day(s), Fixnum.month(s), Fixnum.year(s)\r\n```ruby\r\nTime.now + 3.days\r\nTime.now - 1.year\r\n```\r\n\r\n## Time\r\n- `Time.from_hash() # .from_parts, .from_??? `\r\n```ruby\r\nTime.from_hash(hour: 5, day: 8, month: 10)\r\n```\r\n- `Time.yesterday?`\r\n- `Time.tomorrow?`\r\n- `Time.same_day?(another_time)`\r\n- `Time.start_of_day`\r\n- `Time.end_of_day`\r\n- `Time.start_of_week`\r\n- `Time.start_of_week(:monday)`\r\n- `Time.end_of_week`\r\n- `Time.end_of_week(:monday)`\r\n- `Time.days_in_month`\r\n- `Time.days_in_year`\r\n- `Time.days_in_month`\r\n- `Time.days_in_year`\r\n- `Time.date_array\r\n=> [2012, 9, 13]`\r\n- `Time.time_array\r\n=> [9, 19, 6]`\r\n- `Time.datetime_array\r\n=> [2012, 9, 13, 9, 19, 6]`\r\n- `Time.to_s(format) # using ruby notation %`\r\n"},"comment":{"url":"https://api.github.com/repos/HipByte/Flow/issues/comments/164400030","html_url":"https://github.com/HipByte/Flow/issues/1#issuecomment-164400030","issue_url":"https://api.github.com/repos/HipByte/Flow/issues/1","id":164400030,"user":{"login":"bmichotte","id":235510,"avatar_url":"https://avatars.githubusercontent.com/u/235510?v=3","gravatar_id":"","url":"https://api.github.com/users/bmichotte","html_url":"https://github.com/bmichotte","followers_url":"https://api.github.com/users/bmichotte/followers","following_url":"https://api.github.com/users/bmichotte/following{/other_user}","gists_url":"https://api.github.com/users/bmichotte/gists{/gist_id}","starred_url":"https://api.github.com/users/bmichotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmichotte/subscriptions","organizations_url":"https://api.github.com/users/bmichotte/orgs","repos_url":"https://api.github.com/users/bmichotte/repos","events_url":"https://api.github.com/users/bmichotte/events{/privacy}","received_events_url":"https://api.github.com/users/bmichotte/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T10:17:54Z","updated_at":"2015-12-14T10:17:54Z","body":"@lrz The same thing could be achieved using something like `my_time.add(days: 5)` or something like that, but I think `my_time + 5.days` is really visual and clear"}}