Agregue tiempo a DateTime Python
add_time = datetime.timedelta(days=2)
David Diamant
add_time = datetime.timedelta(days=2)
import datetime
delta = datetime.timedelta(
days=50,
seconds=27,
microseconds=10,
milliseconds=29000,
minutes=5,
hours=8,
weeks=2
)
new_datetime = datetime.now() + delta