date formatting

WmGill wmgill at wmgill.com
Fri Sep 12 13:32:47 EDT 2003


I want to write a script that Among other things) renames a file based on
it's timestamp.
I can get the date info using
"strftime('%y%m%d',localtime(os.stat('thefile')[ST_MTIME])", but this seems
like a long way around the block.  Is there a more direct way?

Bill






More information about the Python-list mailing list