How to check if local time is greater than a given time?

Hi - I want a process to stop at a certain time of the same day. How can i write the logic for this condition?
Ex: If i set the process to stop today i.e 09/12/2019 3 AM - as soon as the time is past 3AM on 9/12/2019, the process should terminate.

Thanks in advance!