Answers for "datatime add time in float"

0

datatime add time in float

>>> import datetime
>>> d = datetime.datetime(2016, 11, 17)
>>> delta = datetime.timedelta(hours=4.1326742)
>>> d + delta
datetime.datetime(2016, 11, 17, 4, 7, 57, 627120)
Posted by: Guest on March-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language