Does Python have a Real Time Clock, which can give the exact year, month, day, hour, minute, and second? How can I use it?
datetime.now()
That's it. It gives the current date and time up to microseconds. Use as you want.
For example, to set an alarm after 2 days by running a loop to check once per hour if the alarm time has been reached:
alarm_time = date.today() + timedelta(days=2)
while date.today() != alarm_time:
time.sleep(60 * 60)
# do here anything you want to do when alarm time is reached