{"action":"created","issue":{"url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/7","repository_url":"https://api.github.com/repos/caridy/intl-relative-time-spec","labels_url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/7/comments","events_url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/7/events","html_url":"https://github.com/caridy/intl-relative-time-spec/issues/7","id":159550888,"number":7,"title":"units to consider when selecting the unit","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T03:09:06Z","updated_at":"2016-06-10T13:04:23Z","closed_at":null,"body":"Currently, the spec is considering \"all\" units possible when trying to determine the correct one - seconds, minutes, hours, days, weeks, months, quarters, years.\r\n\r\nWe still have more units to consider like \"last Tuesday\", and I can see users wanting to skip \"quarters\" or calculate only up to days, so - seconds, minutes, hours, normally, but nothing above days (so \"4500 days ago\").\r\n\r\nIt seems like a simple solution would be to allow people to pass the list of units to consider:\r\n\r\n```\r\nlet x = new Intl.RelativeTimeFormat(locales, {\r\n  type: 'bestFit',\r\n  units: ['second', 'minute', 'hour', 'day']\r\n});\r\n```\r\n\r\nThen, if you want to add weekdays or quarters, you'd just list it as one of the units.\r\n\r\nDoes it sound realistic?"},"comment":{"url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/comments/225176374","html_url":"https://github.com/caridy/intl-relative-time-spec/issues/7#issuecomment-225176374","issue_url":"https://api.github.com/repos/caridy/intl-relative-time-spec/issues/7","id":225176374,"user":{"login":"caridy","id":38969,"avatar_url":"https://avatars.githubusercontent.com/u/38969?v=3","gravatar_id":"","url":"https://api.github.com/users/caridy","html_url":"https://github.com/caridy","followers_url":"https://api.github.com/users/caridy/followers","following_url":"https://api.github.com/users/caridy/following{/other_user}","gists_url":"https://api.github.com/users/caridy/gists{/gist_id}","starred_url":"https://api.github.com/users/caridy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caridy/subscriptions","organizations_url":"https://api.github.com/users/caridy/orgs","repos_url":"https://api.github.com/users/caridy/repos","events_url":"https://api.github.com/users/caridy/events{/privacy}","received_events_url":"https://api.github.com/users/caridy/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T13:04:23Z","updated_at":"2016-06-10T13:04:23Z","body":"We have bigger problems as described in #6, which might prevent us from using bestfit."}}
{"actor":{"display_login":"caridy"}}