Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the system time in python

from datetime import datetime

now = datetime.now()

current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
 
PREVIOUS NEXT
Tagged: #system #time #python
ADD COMMENT
Topic
Name
5+7 =