Answer the question
In order to leave comments, you need to log in
How to add time to time python('datetime.datetime' and 'datetime.datetime')?
Hello everyone, I have a problem with adding time:
today = timezone.now()
added_days = today + timezone.timedelta(days=int(Sub.objects.get(id=qp.desc).duration))
print(today + added_days)
Answer the question
In order to leave comments, you need to log in
print(added_days)
In added_days there is already a date with added days, why add today to it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question