aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'message.cpp')
-rw-r--r--message.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp
index 90723d9..4aae043 100644
--- a/message.cpp
+++ b/message.cpp
@@ -46,6 +46,12 @@ DcMessage::getState()
return dc_msg_get_state(m_message);
}
+QDateTime
+DcMessage::getTimestamp()
+{
+ return QDateTime::fromSecsSinceEpoch (dc_msg_get_timestamp(m_message), Qt::UTC);
+}
+
void
DcMessage::setText(QString text)
{