I need an elegant C ++ function that takes a QString parameter containing unix time (e.g. 1295874681) and converts it to a standard time format (e.g. Mon, Jan 24, 2011 1:11:21 PM GMT) containing QString and returns it .
bool ok; const uint s = unixTimeStr.toUInt( &ok ); if ( !ok ) { ..handle conversion error (unixTimeStr not containing a number) } const QDateTime dt = QDateTime::fromTime_t( s ); const QString textdate = dt.toString( Qt::TextDate );
Source: https://habr.com/ru/post/1345694/More articles:ASP.NET compiler not working with XmlSerializers error during web deployment project - asp.netHow does my shell script determine if it is in a real shell or not? - bashGWT - DialogBox login function implementation - gwtByte sort error - phpJunit test for spring ws endpoint interceptor - spring-wsIs .htc file good practice in older versions of IE for rounded corners like CSS3? - cssType forced error in IE8 RegExp.exec ()? - javascriptIs there a command in java for measuring runtime? - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1345698/upload-files-to-sql-server-2008-database-using-ms-access-2010&usg=ALkJrhjwjhUuaWY-hHXPxJ05vlNk_NfvNAHow to determine programmatically which program caught my file - c #All Articles