Re: [Tutor] get last 7 days string in a log file

2011-08-01 Thread Bjørn Roar Eriksen
1 > You can apply this logic to each date and create a complex statement using OR > to get the count. > OR you can use the datetime object with proper formatting and check the > existence of the condition. > > Do I understand your problem correctly? > > Regards > Sumod

[Tutor] get last 7 days string in a log file

2011-08-01 Thread Bjørn-Roar Eriksen
Hi I'm new to Python and I'm trying to write a script that's count restart of an application. The log file contains: 2009-03-06 18:20:26,423 User operation - start nanny 2009-03-06 18:20:26,423 User operation - start all services And 2009-03-06 18:20:26,423 User operation - start all services t