Delete Some Lines from File

Hi,

I have a txt document having a format like this:

DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:34
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:32
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:30
...
DATA1 | DATA2 | DATA3 | 23-JAN-20 22:35:31
DATA1 | DATA2 | DATA3 | 23-JAN-20 22:30:34
DATA1 | DATA2 | DATA3 | 23-JAN-20 21:41:30
...

I need to delete the lines having more than 3 hours from current time. I just need to keep 3 hours interval from current date.

Thanks

Hello gc_sw,

On UNIX.com we do encourage users to add their efforts which they have put in order to solve their own problems.
So kindly do edit your post and add the attempted code by you and let us know then.

Thanks,
R. Singh