{"action":"closed","issue":{"url":"https://api.github.com/repos/EnergyID/smappy/issues/6","repository_url":"https://api.github.com/repos/EnergyID/smappy","labels_url":"https://api.github.com/repos/EnergyID/smappy/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/EnergyID/smappy/issues/6/comments","events_url":"https://api.github.com/repos/EnergyID/smappy/issues/6/events","html_url":"https://github.com/EnergyID/smappy/issues/6","id":181902488,"number":6,"title":"Suggestion to use daytime type instead of epoch and milliseconds","user":{"login":"stefferber","id":5459845,"avatar_url":"https://avatars.githubusercontent.com/u/5459845?v=3","gravatar_id":"","url":"https://api.github.com/users/stefferber","html_url":"https://github.com/stefferber","followers_url":"https://api.github.com/users/stefferber/followers","following_url":"https://api.github.com/users/stefferber/following{/other_user}","gists_url":"https://api.github.com/users/stefferber/gists{/gist_id}","starred_url":"https://api.github.com/users/stefferber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefferber/subscriptions","organizations_url":"https://api.github.com/users/stefferber/orgs","repos_url":"https://api.github.com/users/stefferber/repos","events_url":"https://api.github.com/users/stefferber/events{/privacy}","received_events_url":"https://api.github.com/users/stefferber/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-09T18:30:15Z","updated_at":"2016-10-09T21:18:52Z","closed_at":"2016-10-09T21:18:52Z","body":"Using the milliseconds since epoch like in the [original smappee REST API](https://smappee.atlassian.net/wiki/display/DEVAPI/Get+Consumption) is consistent but not very easy to handle within python. As I understood smappee uses always UTC time. Therefore, it would be nice to make use of the [datetime](https://docs.python.org/3.3/library/datetime.html) object  instead of milliseconds in the methods:\r\n\r\n```python\r\nget_consumption\r\nget_sensor_consumption\r\n```\r\nThen it is easier to adjust to different time zones and requires less python code to use smappy API.\r\nWhat do you think?"}}
{"actor":{"display_login":"JrtPec"}}