{"action":"created","issue":{"url":"https://api.github.com/repos/malcommac/SwiftDate/issues/79","labels_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/79/comments","events_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/79/events","html_url":"https://github.com/malcommac/SwiftDate/issues/79","id":118067714,"number":79,"title":"Support for relative/pretty date formatting","user":{"login":"xiajinchun","id":4453349,"avatar_url":"https://avatars.githubusercontent.com/u/4453349?v=3","gravatar_id":"","url":"https://api.github.com/users/xiajinchun","html_url":"https://github.com/xiajinchun","followers_url":"https://api.github.com/users/xiajinchun/followers","following_url":"https://api.github.com/users/xiajinchun/following{/other_user}","gists_url":"https://api.github.com/users/xiajinchun/gists{/gist_id}","starred_url":"https://api.github.com/users/xiajinchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiajinchun/subscriptions","organizations_url":"https://api.github.com/users/xiajinchun/orgs","repos_url":"https://api.github.com/users/xiajinchun/repos","events_url":"https://api.github.com/users/xiajinchun/events{/privacy}","received_events_url":"https://api.github.com/users/xiajinchun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/malcommac/SwiftDate/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-20T15:48:11Z","updated_at":"2015-12-21T23:13:59Z","closed_at":null,"body":"Is there the way to custom time unit when call the function like `toRelativeString `? , and then return the relative representation with custom time unit.\r\nFor example if the time unit is `day`,  a relative representation of the date by comparing `2015-11-15 00:00` to the `2015-11-16 02:00`  should be returned `1 day`, and if the time unit is `hour`, should be returned `26 hours`."},"comment":{"url":"https://api.github.com/repos/malcommac/SwiftDate/issues/comments/166454052","html_url":"https://github.com/malcommac/SwiftDate/issues/79#issuecomment-166454052","issue_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/79","id":166454052,"user":{"login":"Hout","id":641321,"avatar_url":"https://avatars.githubusercontent.com/u/641321?v=3","gravatar_id":"","url":"https://api.github.com/users/Hout","html_url":"https://github.com/Hout","followers_url":"https://api.github.com/users/Hout/followers","following_url":"https://api.github.com/users/Hout/following{/other_user}","gists_url":"https://api.github.com/users/Hout/gists{/gist_id}","starred_url":"https://api.github.com/users/Hout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hout/subscriptions","organizations_url":"https://api.github.com/users/Hout/orgs","repos_url":"https://api.github.com/users/Hout/repos","events_url":"https://api.github.com/users/Hout/events{/privacy}","received_events_url":"https://api.github.com/users/Hout/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T23:13:59Z","updated_at":"2015-12-21T23:13:59Z","body":"Instead of having all kinds of different names, I prefer one general function with parameters for the units to format and the 'shortness' of the output string"}}