tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find out last modtime of a file?


From: Skip Montanaro
Subject: Re: Find out last modtime of a file?
Date: Sun, 18 Jan 2004 16:08:20 -0600

    Kai> In addition to invoking Perl and the /usr/bin/stat (or /bin/stat?)
    Kai> program, which other ways can you think of to find the last modtime
    Kai> of a file?

    $ python -c 'import os ; print os.path.getmtime("/etc/passwd")'
    1073427074

:-)  Should work as above with versions of Python as far back as 1.5.2
(released in 1998 I think).

Skip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]