ST_CTIME convert to yyyymmdd

Hitesh hitesh287 at gmail.com
Mon Aug 7 16:01:57 EDT 2006


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




More information about the Python-list mailing list