I have a datetime object that is printed with:
ts = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f").strip() p