On Mon, Sep 8, 2014 at 5:58 AM, Peter Otten <__pete...@web.de <javascript:;>>
wrote:

>
> PS: This is not about being pythonic, but it might be more convenient for
> client code if you use datetime objects instead of timestamps:
>
> >>> import datetime
> >>> last_logoff = datetime.datetime.utcfromtimestamp(1410065399)
> >>> print(last_logoff)
> 2014-09-07 04:49:59
>

Yes, I'll do it for sure, the API response is indeed returned that way to
make things easier.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to