Answers for "python add timedelta to time"

1

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)
Posted by: Guest on June-26-2020

Python Answers by Framework

Browse Popular Code Answers by Language