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?

16 of 21 people (76%) answered Yes
Recently 7 of 10 people (70%) 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.
>>>