time from timedelta code example
Example 1: python timedelta
from datetime import timedelta
tomorrow = datetime.today() + timedelta(days = 1)
Example 2: add time delta pytohn
import datetime
ts = ts + datetime.timedelta(seconds=1)
ts = ts + datetime.timedelta(minutes=1)
ts = ts + datetime.timedelta(hours=1)
ts = ts + datetime.timedelta(days=1)