FOLLOWING WAY TO FIND CURRENT TIME IN PYTHON
By default now() function returns output in YYYY-MM-DD HH:MM:SS:MS format. Use below sample script to get current date and time in Python script concept.
program
import datetime
currentDT = datetime.datetime.now()
print (str(currentDT))
output
2019-04-08 O3:11:04.159338