Specifying a time from previous day

Emile van Sebille emile at fenx.com
Sun Apr 14 14:45:01 EDT 2002


jrup
> I need to search some log files, but only if they were created after
4:00pm
> the previous day.

Look into os.stat

>>> print os.stat.__doc__
stat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)
Perform a stat system call on the given path.


--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list