Aug-17-2018, 06:25 AM
>>> import datetime as dt >>> t = dt.datetime.strptime('20180801194918.0', '%Y%m%d%H%M%S.%f') >>> str(t) '2018-08-01 19:49:18' >>>why ignore the milliseconds?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs