Add entry point to get reading times and timeval structures
@@ -53,6 +53,8 @@ class Reading {
void setUuid(const std::string& uuid) { m_uuid = uuid; };
void setTimestamp(unsigned long ts) { m_timestamp.tv_sec = (time_t)ts; };
void setUserTimestamp(unsigned long uTs) { m_userTimestamp.tv_sec = (time_t)uTs; };
+ void getUserTimestamp(struct timeval *tm) { *tm = m_userTimestamp; };
+ void getTimestamp(struct timeval *tm) { *tm = m_timestamp; };
typedef enum dateTimeFormat { FMT_DEFAULT, FMT_STANDARD, FMT_ISO8601 } readingTimeFormat;
