Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python time function in for loop

from datetime import datetime

def currenttime():
    now = datetime.now()
    dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
    return dt_string
 
PREVIOUS NEXT
Tagged: #python #time #function #loop
ADD COMMENT
Topic
Name
2+5 =