Question on time module
Gold Fish
occeanlinux at linuxmail.org
Sun Jun 2 09:49:37 EDT 2002
Can anyone tell me how to sort the file in the directory according to their
modification time. Then if i want to look up a find say python.txt Mar 04
2002 in the directory can i use glob.glob to do it. I using
time.localtime(time.time()) to get the current time in, how can i display
only the file in the directory 5 days agos from the current time. Please
help me to solve this problem. I tried to use os.stat to seperate the file
time but it couldn't work.
More information about the Python-list
mailing list