Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get current time in python with strftime

now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
 
PREVIOUS NEXT
Tagged: #current #time #python #strftime
ADD COMMENT
Topic
Name
1+7 =