On Fri, Apr 22, 2011 at 1:49 AM, rabusta <rabu...@gmail.com> wrote: > How convert lastwritetime file to python datetime?
[Mildly educated guess after scanning https://github.com/fancycode/pylzma/blob/master/py7zlib.py ]: It's likely a Unix timestamp. Perhaps try datetime.datetime.utcfromtimestamp() or datetime.datetime.fromtimestamp() ? http://docs.python.org/library/datetime.html#datetime.datetime.utcfromtimestamp http://docs.python.org/library/datetime.html#datetime.datetime.fromtimestamp Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list