Answers for "python curremt time"

0

python currnent time

from datetime import datetime
now = datetime.now()
print(now.strftime("%d/%m/%Y %H:%M:%S"))
Posted by: Guest on July-16-2021
0

get time python

from datetime import datetime

date = datetime.now()
print(date)
# Prints in the format: year, month, day, hour, minute, second and microsecond
Posted by: Guest on February-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language