I've seen solutions for converting something like `'7:30 PM'` using the `datetime.strptime` format `'%I:%M%p'` (e.g. [here](https://stackoverflow.com/questions/466345/converting-string-into-datetime)), but I have strings that look like this:

```
'05:15:00.000000000 AM'

```

The fact that there are both seconds and AM/PM seems to be uncommon.

How can I convert this?