{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/ms/issues/100","repository_url":"https://api.github.com/repos/zeit/ms","labels_url":"https://api.github.com/repos/zeit/ms/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/zeit/ms/issues/100/comments","events_url":"https://api.github.com/repos/zeit/ms/issues/100/events","html_url":"https://github.com/zeit/ms/issues/100","id":265760162,"number":100,"title":"Add `fromNow`","user":{"login":"Moeriki","id":38758,"avatar_url":"https://avatars2.githubusercontent.com/u/38758?v=4","gravatar_id":"","url":"https://api.github.com/users/Moeriki","html_url":"https://github.com/Moeriki","followers_url":"https://api.github.com/users/Moeriki/followers","following_url":"https://api.github.com/users/Moeriki/following{/other_user}","gists_url":"https://api.github.com/users/Moeriki/gists{/gist_id}","starred_url":"https://api.github.com/users/Moeriki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moeriki/subscriptions","organizations_url":"https://api.github.com/users/Moeriki/orgs","repos_url":"https://api.github.com/users/Moeriki/repos","events_url":"https://api.github.com/users/Moeriki/events{/privacy}","received_events_url":"https://api.github.com/users/Moeriki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-16T12:56:26Z","updated_at":"2017-10-24T22:24:42Z","closed_at":null,"author_association":"NONE","body":"This is a very common pattern in my code. Not sure about how other people use it.\r\n\r\n```js\r\nDate.now() + ms('2h')\r\n```\r\n\r\nI'd love to add `fromNow` as shortcut.\r\n\r\n```js\r\nconst inTwoHours = ms.fromNow('2h'); // 1508165682168 ;)\r\n```\r\n Yay or nay?\r\n"},"comment":{"url":"https://api.github.com/repos/zeit/ms/issues/comments/339153987","html_url":"https://github.com/zeit/ms/issues/100#issuecomment-339153987","issue_url":"https://api.github.com/repos/zeit/ms/issues/100","id":339153987,"user":{"login":"yoavmmn","id":10773255,"avatar_url":"https://avatars2.githubusercontent.com/u/10773255?v=4","gravatar_id":"","url":"https://api.github.com/users/yoavmmn","html_url":"https://github.com/yoavmmn","followers_url":"https://api.github.com/users/yoavmmn/followers","following_url":"https://api.github.com/users/yoavmmn/following{/other_user}","gists_url":"https://api.github.com/users/yoavmmn/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavmmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavmmn/subscriptions","organizations_url":"https://api.github.com/users/yoavmmn/orgs","repos_url":"https://api.github.com/users/yoavmmn/repos","events_url":"https://api.github.com/users/yoavmmn/events{/privacy}","received_events_url":"https://api.github.com/users/yoavmmn/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T22:24:42Z","updated_at":"2017-10-24T22:24:42Z","author_association":"NONE","body":"+1 on the idea. And I totally agree with @mikemfleming, a `from` option will be easier and faster to implement.\r\nI hope to sit and work on a Proof Of Concept in the next day or two.\r\n"}}
{"actor":{"display_login":"yoavmmn"}}