lbrycrd/gui/src/guiutil.cpp

10 lines
247 B
C++
Raw Normal View History

2011-05-27 18:38:30 +02:00
#include "guiutil.h"
#include <QDateTime>
QString DateTimeStr(qint64 nTime)
{
QDateTime date = QDateTime::fromMSecsSinceEpoch(nTime*1000);
return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm");
2011-05-27 18:38:30 +02:00
}