Last mod date
Robert Kern
rkern at ucsd.edu
Tue Sep 6 20:28:46 EDT 2005
Webmaster - Fidelity Lodge #113 wrote:
> This is my first post--I'm a Java developer trying to expand my
> horizons. I'm trying to figure out how to find out the last
> modification date/time for a file. I've found a reference to
> *PyOS_GetLastModificationTime *as an Operating System Utility, but I
> can't figure out which module I need to import to access it.
os.path.getmtime(filename)
http://docs.python.org/lib/module-os.path.html
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list