in reply to Re^3: Compare fields in a file
in thread Compare fields in a file

Nice, but it does not take into account the date portion of the date-time. If you have several days of data it will lump together all the same times, not looking at the day.

I grant you that it is not very clear from the OP's example whether his file can contain multiple days.

I looked again at the program written by the OP and indeed he only uses the time element, so you were right!

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^5: Compare fields in a file
by toolic (Bishop) on Feb 10, 2009 at 20:43 UTC
    I couldn't decide whether it was relevant to mention this "feature" of my code. So, in my Laziness, I decided to omit that assumption. I think I'll update my node to be more explicit.