{"action":"closed","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1397","repository_url":"https://api.github.com/repos/sunpy/sunpy","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1397/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1397/events","html_url":"https://github.com/sunpy/sunpy/issues/1397","id":71425618,"number":1397,"title":"TimeRange duration methods are not consistent ","user":{"login":"ayshih","id":991759,"avatar_url":"https://avatars.githubusercontent.com/u/991759?v=3","gravatar_id":"","url":"https://api.github.com/users/ayshih","html_url":"https://github.com/ayshih","followers_url":"https://api.github.com/users/ayshih/followers","following_url":"https://api.github.com/users/ayshih/following{/other_user}","gists_url":"https://api.github.com/users/ayshih/gists{/gist_id}","starred_url":"https://api.github.com/users/ayshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayshih/subscriptions","organizations_url":"https://api.github.com/users/ayshih/orgs","repos_url":"https://api.github.com/users/ayshih/repos","events_url":"https://api.github.com/users/ayshih/events{/privacy}","received_events_url":"https://api.github.com/users/ayshih/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sunpy/sunpy/labels/0.5.x","name":"0.5.x","color":"eb6420"},{"url":"https://api.github.com/repos/sunpy/sunpy/labels/package-novice","name":"package-novice","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-27T23:05:10Z","updated_at":"2016-02-05T15:29:44Z","closed_at":"2016-02-05T15:29:44Z","body":"`TimeRange` has several methods to retrieve the elapsed duration: `days()`, `minutes()`, and `seconds()`.  However, the first of those three only returns the number of *full* days elapsed (i.e., fractional days are ignored).  This seems silly.\r\n\r\n```python\r\n>>> from sunpy import TimeRange\r\n>>> t1 = datetime(2000, 1, 1)\r\n>>> t2 = datetime(2000, 1, 2, 0, 0, 30, 75)\r\n>>> tr = TimeRange(t1, t2)\r\n>>> tr.days()\r\n1\r\n>>> tr.minutes()\r\n1440.50000125\r\n>>> tr.seconds()\r\n86430.000075\r\n```\r\n\r\nOn a related note, why is there no `hours()`?"}}