filmov
tv
Code 48: Timedelta() in Python | DateTime Manipulation in Python | Datetime Module | 365 Day of Code
![preview_player](https://i.ytimg.com/vi/DjrHMXWx5wo/maxresdefault.jpg)
Показать описание
Timedelta() in Python. timedelta() is generally used for calculating differences in dates and also can be used for date manipulations in Python.
Code -
import datetime
print(date_obj)
print(date_new)
print(date_new2)
# We can also use seconds, minutes, hours.
print(date_new3)
# Thanks
Code -
import datetime
print(date_obj)
print(date_new)
print(date_new2)
# We can also use seconds, minutes, hours.
print(date_new3)
# Thanks