Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to display the current date and time


import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))				 
	
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Python #program #display #current #date #time
ADD COMMENT
Topic
Name
5+3 =