timedate .now python code example
Example: print time in python
import time
t = time.localtime()
current_time = time.strftime("%H:%M:%S", t)
print(current_time)
import time
t = time.localtime()
current_time = time.strftime("%H:%M:%S", t)
print(current_time)