Hi,
I have a unix time 1194278852, which is 11/05/2007 4:07pm GMT.
How do I use Qt to convert it?
Thanks
Printable View
Hi,
I have a unix time 1194278852, which is 11/05/2007 4:07pm GMT.
How do I use Qt to convert it?
Thanks
Take a look at QDateTime (especially notice a static member it has).
Hmm... sounds fine to me:
Code:
#include <QtCore> #include <QtDebug> int main(){ uint x = 1194278852; return 0; }
The answer is in localtime which is GMT+1.Quote:
$ ./x
QDateTime("pon. lis 5 17:07:32 2007")