Code 48: Timedelta() in Python | DateTime Manipulation in Python | Datetime Module | 365 Day of Code

preview_player
Показать описание
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
Рекомендации по теме