2

I found this question which answered most of my question, however I have a .[dot] at the end of my string:

2011-03-09T09:58:28.649615

What %[a-z] do I need to use and were can I find more information on this. I know it's related to c.

thanks!

Community
  • 1
  • 1
jbcurtin
  • 1,793
  • 2
  • 14
  • 23

1 Answers1

3

the part after the dot are probably microseconds...

datetime.datetime.strptime("2011-03-09T09:58:28.649615","%Y-%m-%dT%H:%M:%S.%f")

reference: Python documentation

Freax
  • 91
  • 2