how to filter files by creation date

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Nov 6 05:55:51 EST 2007


On Tue, 06 Nov 2007 02:35:46 -0800, awel wrote:

>> >> In [438]: !touch test.py
>>
>> >> In [439]: datetime.date.fromtimestamp(os.stat('/home/bj/test.py').st_ctime)
>> >> Out[439]: datetime.date(2007, 11, 6)
>>
>> > Could you explain a little more because I am new in scripting?
>>
>> Not really.  I showed you the call I made and the result I got.  How can I
>> be more clear and precise!?
> 
> Ok but I run in Windows and I cannot understand your '!touch test.py'

Ah, sorry this was just to create and/or make sure that the file exists
and has today's date.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list