MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / fromDatabase

Method fromDatabase

src/protocol/MessageTime.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 MessageTime MessageTime::fromDatabase(qint64 msecs) {
45 if (msecs > 0) {
46 return MessageTime(QDateTime::fromMSecsSinceEpoch(msecs));
47 } else {
48 return MessageTime();
49 }
50 }
51
52 quint64 MessageTime::getMessageTime() const {
53 return static_cast<quint64>(messageTime.toMSecsSinceEpoch() / 1000);

Callers

nothing calls this directly

Calls 1

MessageTimeClass · 0.85

Tested by

no test coverage detected