[Qt-interest] what is the best way to get date in secounds?

Andre Somers andre at familiesomers.nl
Mon Apr 19 09:43:06 CEST 2010


On 19-4-2010 8:10, Meir Yanovich wrote:
> Hello all
> i need to get the given data + time and convert it to secounds
> what is the best way in QT ?
>

Get a date/time in seconds? In seconds from when? 1-1-1970 00:00 UTC is 
accessible with QDateTime::toTime_t, otherwise you'll have to  
QDateTime::secsTo().

André




More information about the Qt-interest-old mailing list