Ref T241, some improvements for timestamp based

* this->m_ => m_
* is[Older/Newer]ThanAdjusted
This commit is contained in:
Klaus Basan
2018-02-04 07:43:11 +01:00
parent 2eb7e602e3
commit 52bf09eaf7
3 changed files with 60 additions and 26 deletions

View File

@@ -176,6 +176,18 @@ namespace BlackMisc
//! Timestamp and offset
QString getFormattedTimestampAndOffset(bool includeRawTimestamp) const;
//! Is this newer than other?
bool isNewerThanAdjusted(const ITimestampWithOffsetBased &otherTimestampObj) const;
//! Is newer than epoch value?
bool isNewerThanAdjusted(qint64 mSecsSinceEpoch) const;
//! Is this older than other?
bool isOlderThanAdjusted(const ITimestampWithOffsetBased &otherTimestampObj) const;
//! Is this older than other?
bool isOlderThanAdjusted(qint64 mSecsSinceEpoch) const;
protected:
//! Can given index be handled
static bool canHandleIndex(const CPropertyIndex &index);