datetime.datetime.now() + 1

Question:

I would like to add 1 day with 3 hours + datetime.now.

mante = Employee()
mante.usercompany = idnamez
mante.knowledgelost = datetime.datetime.now()+1 day more 3 hours.
mante.seguemplelost = datetime.datetime.now()+1 
mante.put()

Someone knows how to do it?

Asked By: a3rxander

||

Answers:

datetime.datetime.now() + datetime.timedelta(days=1, hours=3)
Answered By: Sven Marnach
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.