import datetimeimport
nowtime = datetime.datetime.now()date
nowtime.strftime("%Y-%m-%d %H:%M:%S.") + str(nowtime.microsecond)im