I make a weather application. Stuck on setting up a mailing schedule.
Task: the user writes the time in the "08:30" format and the next time at 08:30 he should receive a weather forecast.
The first is how to parse the message from the user in such a way that a schedule would be created. And second, how can you actually make this schedule?
In my opinion it should be something like this:
from datetime import datetime if time_alarm == datetime.now("%Y, 08, 30, %h, %m, %s, %ms"): #сравнивается нынешнее время и заданное пользователем print ("prognoz na den") With the syntax obviously namudil, but I think, brought his train of thought.