[Qt-interest] QDateTime bug with <= operator ?

Alexandre Beraud aberaud at infflux.com
Wed Feb 10 10:05:44 CET 2010


Hi,

QDateTime has milisecond precision (just like QTime). Can you check that 
those are equal too ?

Regards,

Alex


Merwin a écrit :
> Hi,
>
> I got a really strange thing that happens:
>
> qDebug() << beginOfTheYear << beginDate << (beginOfTheYear <= beginDate);
>
> Outputs:
>
> QDateTime("*mer. févr. 10 09:42:01 2010*") QDateTime("*mer. févr. 10 
> 09:42:01 2010*") *false*
>
> As you can see, datetimes are equals, but the comparaison returns false...
> Is there a reason or it's a bug?
>
> --
> Merwin
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>   


-- 
Alexandre BERAUD
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com




More information about the Qt-interest-old mailing list