[Qt-interest] how to get datetime as milliseconds ?

Jason H scorp1us at yahoo.com
Wed Apr 21 11:19:30 CEST 2010


Generally when someone asks for ms resolution, it is because 1s accuracy is not enough.

I thought you could just do (x.toTime_t() * 1000) + x.msec() ?





________________________________
From: Denis Akhmetzyanov <dakhmetzyanov at smartlabs.tv>
To: Meir Yanovich <meiry242 at gmail.com>
Cc: Qt-interest <qt-interest at trolltech.com>
Sent: Wed, April 21, 2010 5:16:59 AM
Subject: Re: [Qt-interest] how to get datetime as milliseconds ?

Hi,
No. What's wrong about toTime_t() * 1000 ?



2010/4/21 Meir Yanovich <meiry242 at gmail.com>

Hello 
>i need to return current data+time as mili seconds since ( i guess 1970 is the default .. ) 
>i have the time_t that returns seconds , is there build in method for milliseconds ?
>
>_______________________________________________
>>Qt-interest mailing list
>Qt-interest at trolltech.com
>http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Best regards,
Denis Akhmetzyanov



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100421/c7b597e8/attachment.html 


More information about the Qt-interest-old mailing list