I have a lot of existing code that just uses the normal dateTime
class in python, however in upgrading my program I am using the QtGui.QdateTimeEdit()
class, but that class returns a QdateTime
object that seems to be incompatible with the normal dateTime
object.
So, is there a sane way to convert QdateTime
to normal python dateTime
? Other then breaking it into its parts and recreating a normal dateTime
object from that? I am using PyQt4 with Python 3.2. Thanks.