Check latest time where theres the word 'processed' in logfile

Hi,

Im doing a project to check the latest time with the word 'processed' in a logfile. the time range is within 2 hours before the curent datetime to present.

For example:
Current datetime is 'October 6 2009 8:00AM' --- HKT

So the time range that need to check is from 'October 6 2009 6:00AM' to 'October 6 2009 8:00AM'

Thanks!

What have you tried so far? There are tons of date arithemtic example and date comparisons etc. in the forum already - use the search function please and see if any of the examples help you.