I want to start a Python script a few minutes before 5:00 AM every day, run some code and then sleep until 5:00 AM, then run the rest of the script. In theory, all I need is a loop like the pseudocode below, but I am not sure how to work with times only (no dates).
t2 = '05:00:00'
while timeNow < t2:
# wait