diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-05-27 18:38:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-05-27 18:38:30 +0200 |
commit | 0856c1a03e4c663b09fa50237198c4af382dc18d (patch) | |
tree | f692ad3247b1df0c891e8637cd18f601eedecc84 /gui/src/guiutil.cpp | |
parent | 213f7636301a3311cfcc47421910e326157501c2 (diff) |
work on transaction list model
Diffstat (limited to 'gui/src/guiutil.cpp')
-rw-r--r-- | gui/src/guiutil.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/guiutil.cpp b/gui/src/guiutil.cpp new file mode 100644 index 0000000000..3a5b5ac344 --- /dev/null +++ b/gui/src/guiutil.cpp @@ -0,0 +1,9 @@ +#include "guiutil.h" + +#include <QDateTime> + +QString DateTimeStr(qint64 nTime) +{ + QDateTime date = QDateTime::fromMSecsSinceEpoch(nTime*1000); + return date.toString(Qt::DefaultLocaleShortDate) + QString(" ") + date.toString("hh:mm"); +} |