diff options
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 3b87a33a7..1ae788966 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -709,6 +709,11 @@ QDateTime timestampToDateTime(timestamp_t when) return QDateTime::fromMSecsSinceEpoch(1000 * when, Qt::UTC); } +timestamp_t dateTimeToTimestamp(const QDateTime &t) +{ + return t.toSecsSinceEpoch(); +} + QString render_seconds_to_string(int seconds) { if (seconds % 60 == 0) |