Answers for "set the cmputers current date abd time in python"

0

python print datetime

import datetime
print("Now:", datetime.datetime.now())
Posted by: Guest on August-23-2020
-1

get date and time python

from datetime import datetime
now = datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on August-11-2020

Code answers related to "set the cmputers current date abd time in python"

Python Answers by Framework

Browse Popular Code Answers by Language