[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QDateTime
From:       Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date:       2002-12-20 15:31:54
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic