[PyQt] QDateTimeEdit to UTC time?

Phil Thompson phil at riverbankcomputing.com
Thu Mar 1 17:15:14 GMT 2012


On Thu, 1 Mar 2012 17:58:10 +0100, Fabien Lafont <lafont.fabien at gmail.com>
wrote:
> Does anyone knows how to convert the date and time of a
> QDateTimeEdit() to UTC time format

QDateTime.toUTC()

> (seconds since 1970 like with
> time.time() )?

QDateTime.toTime_t()

Phil


More information about the PyQt mailing list