I'm trying to write a desktop application that takes the current time and adds increments of 90 minutes to tell the user when they should wake up if they go to bed now (sleep cycles occur reliably in 90 min cycles in most people).
To do this, I need the program to take the current datetime and add 6 repetitions of 90 minutes. I've tried several approaches thus far, here's what I feel is the closest I've come (using Python 3.7):
import datetime
now = datetime.datetime.now()
for i (0,7):
gotosleep = now + datetime.datetime(0, 0, 0[, 0[, (90*i)[, 0[, 0]]]])
print(gotosleep)
I've also tried formatting datetime.datetime(0, 0, 0[, 0[, (90*i)[, 0[, 0]]]])
as datetime.datetime(0, 0, 0[ 0[ (90*i)[ 0[ 0]]]])
because I kept getting syntax errors, to no avail.