I am retrieving a timezone aware DateTime
object from my postgres db.
Now I want to convert this datetime object into it's string representation.
Normally I would do something like this:
str(datetime.datetime(2016, 1, 15, 9, 59, 45, 165904))
'2016-01-15 09:59:45.165904'
But here I have:
datetime.datetime(2016, 1, 15, 9, 59, 45, 165904, tzinfo=<UTC>)
I cannot find a way anywhere to find the str
repesentation of the given object.