faqts : Computers : Programming : Languages : Python : Snippets

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 19 people (74%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I change a file's last modified date

Jun 17th, 2002 10:32
Klaus Alexander Seistrup, Chui Tey,


>>> import os
>>> print os.utime.__doc__
utime(path, (atime, utime)) -> None
utime(path, None) -> None
Set the access and modified time of the file to the given values.  If the
second form is used, set the access and modified times to the current time.
>>>