Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python timedelta

from datetime import timedelta
# Create a delta time
datetime_delta = timedelta(weeks = 1, days = 2, hours = 4, minutes = 10,
                           seconds = 8, milliseconds = 25, microseconds = 8)
print("Delta datetime :- ", datetime_delta)
>>> Delta datetime :-  9 days, 4:10:08.025008
 
PREVIOUS NEXT
Tagged: #python #timedelta
ADD COMMENT
Topic
Name
4+8 =