Parse last_changed string in AppDaemon?

I want to parse the “last_changed” attribute from a sensor into a datetime within an AppDaemon app. The format is something like this:
2017-09-15T11:34:46.792280+00:00

It looks likes there’s no way to parse this with strptime (the “+00:00” is non-standard due to the colon). However I could parse this with homeassistant.util.dt.parse_time, if I could import it.

I might be missing something obvious here, but is there a way to import homeassistant.util.dt into an AppDaemon app?

I did solve it in the end (just by copying code from here) but it’s seems like a common task and I’m wondering if there’s an easier way I’m unaware of?

Cheers,
Justin

There is a helper function that should work for this:

http://appdaemon.readthedocs.io/en/latest/APIREFERENCE.html#convert-utc