Answers for "get current time in python with strftime"

2

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"))
Posted by: Guest on July-26-2021

Code answers related to "get current time in python with strftime"

Python Answers by Framework

Browse Popular Code Answers by Language