[Tutor] file modification dates

Spirou denis@carolo.net
Sun, 16 Jan 2000 23:18:31 +0000


> In that context, how can I discover the creation
> or modifiation date/time of a file?
> I didn't see anything in the documentation

extract from the Python Library Reference :
docdir/html/lib/module-stat.html

The stat module defines constants and functions for interpreting the
results of os.stat(), os.fstat() and os.lstat() (if they exist). For
complete details about the
stat(), fstat() and lstat() calls, consult the documentation for your
system. 
(...)
ST_ATIME 
      Time of last access. 

ST_MTIME 
      Time of last modification. 

ST_CTIME 
      Time of last status change (see manual pages for details). 


Would this be a satisfacting answer ?


Denis