On Mon, Oct 27, 2008 at 4:45 PM, Thierry Lam <[EMAIL PROTECTED]> wrote:

> I have a python time string which has the following value:
>
> 1225137896
>
> The above corresponds to 2008/10/27 16:04:56
>
> What can I use to convert 1225137896 to a more readable date, time
> format?
> --


>>> from datetime import datetime
>>> d = datetime.fromtimestamp(1225137896)
>>> print d
2008-10-27 16:04:56
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to