[PyKDE] QDateTime

Phil Thompson phil at river-bank.demon.co.uk
Fri Dec 20 16:32:00 GMT 2002


On Friday 20 December 2002 3:17 pm, Oleksandr Yakovlyev wrote:
> Can I compare QDateTime objects ?
> I use
> 	fi = QFileInfo(self.mailbox)
> 	state = fi.lastModified() > fi.lastRead()
> 	print state
>
> It show sometime 0, sometime 1 (by random)

No. You need to convert them so something that the Python comparison operators 
can deal with.

Phil




More information about the PyQt mailing list