I have found this
>>> import datetime
>>> today = datetime.date.today()
>>> today + datetime.timedelta(days=-today.weekday(), weeks=1)
datetime.date(2009, 10, 26)
But this returns the number of days until next Monday – how do I calculate this to the minute? I.e., not all times on Tuesday will return the same amount of minutes until Monday.
If you use the datetime.datetime.now() method instead of datetime.date.today() you can use what you already have to get the time to next monday in minutes.