Files manipulation with time comparison

Hi guys - I am new to Unix and learning some basics. I have to create a report of files that are in a specific directory and I have to list filenames with specific titles. This report will be created everyday early in the morning, say at 05:00 AM. (see output file format below)

The 2 categories are determined by a particular timestamp 10:30 PM [in HH24:MI:SS format 22:30:00] for the previous day. If the file is recevied before this time, we have to process it, otherwise not process it. See below

Input file
Aug 25 13:10 123.ABC.183.20080825120109.in,BHILA
Aug 25 14:14 234.ABC.456.20080825140016.in,BILA
Aug 25 17:34 345.ABC.338.20080825103713.in,AMDBD
Aug 25 17:39 456.ABC.135.20080825142521.in,HYTU
Aug 25 18:05 678.ABC.139.20080825145020.in,QTRE
Aug 25 20:10 789.ABC.830.20080825120109.in,MHTN
Aug 25 22:14 890.ABC.169.20080825140016.in,KRORA
Aug 25 22:34 901.ABC.388.20080825103713.in,JKLGU
Aug 25 22:39 134.ABC.170.20080825142521.in,DELHR
Aug 25 23:05 256.ABC.171.20080825145020.in,YUTJO
Aug 26 01:05 256.ABC.173.20080825145020.in,YGHJO

Output file
Files to be processed
Aug 25 13:10 123.ABC.183.20080825120109.in,BHILA
Aug 25 14:14 234.ABC.456.20080825140016.in,BILA
Aug 25 17:34 345.ABC.338.20080825103713.in,AMDBD
Aug 25 17:39 456.ABC.135.20080825142521.in,HYTU
Aug 25 18:05 678.ABC.139.20080825145020.in,QTRE
Aug 25 20:10 789.ABC.830.20080825120109.in,MHTN
Aug 25 22:14 890.ABC.169.20080825140016.in,KRORA

Files not to be processed
Aug 25 22:34 901.ABC.388.20080825103713.in,JKLGU
Aug 25 22:39 134.ABC.170.20080825142521.in,DELHR
Aug 25 23:05 256.ABC.171.20080825145020.in,YUTJO
Aug 26 01:05 256.ABC.173.20080825145020.in,YGHJO

Appreciate some guidance regarding this.

You didn't show your effort to solve your problem:
Search this forum for:
a. How to calculate yesterday date (man date)
b. How to regexp from time to time(awk, sed, etc..)

Success,

awk '{if($3<"22:30" && $2 <"26") print $0 > "processed.txt"; else print $0 > "nottoprocess.txt";}' inputfile
Just a temporary solution. Actually u need to work on date comparison.