dateSTR = datetime.datetime.now().strftime("%H:%M:%S" )
if dateSTR >= ("20:42:10"):
do function
else:
# do something useful till this time
this if statement will do function
when time of day is >= 8:42:10
pm.
Not complaining,
It's a nice time trigger in Python as far as I can see. Just unsure how valid it is.
Main issue :
Not sure how two strings can be equal, unequal or greater in this case.
AND:
Is there a better, more correct way for novice hobbyist to code an "ALARM" at a TOD?
(Not wanting to try to use the numerical values of time, Event / TOD is based on a string value of time.)