All right I got it. Thank you anyway...

create_date = os.stat(pathname)[ST_CTIME]
print time.strftime("%Y%m%d", time.gmtime(create_date))

Hitesh wrote:
> Hi,
>
> Any hint on converting time from ST_CTIME secs into yyyymmdd format?
> sorry for one-liner stupid question.. I couldn;t find (or rather figure
> out) in docs.
> 
> Thank you,
> hj

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to