Re: Read time and date from a text file

2010-11-24 Thread huisky
On Nov 24, 2:45 pm, Peter Otten <__pete...@web.de> wrote: > huisky wrote: > > I see the problem of year. But the question is the source file does > > NOT provide the year information. > > for instance if i have one record as ['Dec','6','21:01:17'], and the > > other as ['Jan','6','21:01:17'] > > th

Re: Read time and date from a text file

2010-11-24 Thread Peter Otten
huisky wrote: > I see the problem of year. But the question is the source file does > NOT provide the year information. > for instance if i have one record as ['Dec','6','21:01:17'], and the > other as ['Jan','6','21:01:17'] > these two records may be in different year. Will it be a problem to > u

Re: Read time and date from a text file

2010-11-24 Thread huisky
On Nov 24, 2:09 pm, Peter Otten <__pete...@web.de> wrote: > huisky wrote: > > As a newbie, I posted my question here again. > > say i have two dics read from a text file by 'split'. > > Please don't start a new thread when you are still asking about the same > topic. > > cstart > > > defaultdi

Re: Read time and date from a text file

2010-11-24 Thread Peter Otten
huisky wrote: > As a newbie, I posted my question here again. > say i have two dics read from a text file by 'split'. Please don't start a new thread when you are still asking about the same topic. cstart > > defaultdict(, {15424: ['Dec', '6', '18:57:40'], 552: > ['Dec', '7', '09:31:00'],

Re: Read time and date from a text file

2010-11-24 Thread Tim Williams
On Nov 24, 7:45 am, huisky wrote: > Hi, > > As a newbie, I posted my question here again. > say i have two dics read from a text file by 'split'. > > >>> cstart > > defaultdict(, {15424: ['Dec', '6', '18:57:40'], 552: > ['Dec', '7', '09:31:00'], 15500: ['Dec', '6', '20:17:02'], 18863: > ['Dec', '7