Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

time addition in python

from datetime import timedelta, datetime

current_date_and_time = datetime.now()
new_time = current_date_and_time + timedelta(minutes=5, hours=1)
print(new_time)
 
PREVIOUS NEXT
Tagged: #time #addition #python
ADD COMMENT
Topic
Name
1+1 =