{"action":"created","issue":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/205","repository_url":"https://api.github.com/repos/ultrabug/py3status","labels_url":"https://api.github.com/repos/ultrabug/py3status/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/205/comments","events_url":"https://api.github.com/repos/ultrabug/py3status/issues/205/events","html_url":"https://github.com/ultrabug/py3status/pull/205","id":138987026,"number":205,"title":"New module: uptime","user":{"login":"Horgix","id":4584397,"avatar_url":"https://avatars.githubusercontent.com/u/4584397?v=3","gravatar_id":"","url":"https://api.github.com/users/Horgix","html_url":"https://github.com/Horgix","followers_url":"https://api.github.com/users/Horgix/followers","following_url":"https://api.github.com/users/Horgix/following{/other_user}","gists_url":"https://api.github.com/users/Horgix/gists{/gist_id}","starred_url":"https://api.github.com/users/Horgix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horgix/subscriptions","organizations_url":"https://api.github.com/users/Horgix/orgs","repos_url":"https://api.github.com/users/Horgix/repos","events_url":"https://api.github.com/users/Horgix/events{/privacy}","received_events_url":"https://api.github.com/users/Horgix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-07T14:12:11Z","updated_at":"2016-03-07T17:30:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/205","html_url":"https://github.com/ultrabug/py3status/pull/205","diff_url":"https://github.com/ultrabug/py3status/pull/205.diff","patch_url":"https://github.com/ultrabug/py3status/pull/205.patch"},"body":"Hi,\r\n\r\nI was using an uptime module for quite a while now but never contributed here, so here we go !\r\n\r\nI'm not sure it's the best implementation possible. I was sad to find out that [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta.resolution) only exposes `.days` and `.seconds` and that we can't call `.strftime()` on it. After a bit of searching , I didn't find a better solution than to use `divmod` from seconds.\r\n\r\nIf someone has a better idea, suggestions are welcome !"},"comment":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/comments/193361126","html_url":"https://github.com/ultrabug/py3status/pull/205#issuecomment-193361126","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/205","id":193361126,"user":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T17:30:48Z","updated_at":"2016-03-07T17:30:48Z","body":"It might be worth adding a `cache_timeout` param.\r\n\r\nIf `format = '... {seconds}'` I'll want a regular update `format = '{days} {hours}'` then every second seems over the top\r\n"}}