I wrote a program that read the time each second and we should choose the target time and when the system time equaled to target a time that program shows a notification but that program wasn't optimized because it works with memory very much.
that was like this:
import datetime
while(1):
currentDT = datetime.datetime.now()
if "00:00:00 PM" ==str(currentDT.strftime("%I:%M:%S %p")):
alarm
break
else:
continue
is anyone can customize that or suggest a better method?