add support for start date offset

This commit is contained in:
Leopixelo
2026-06-08 15:13:13 +02:00
parent 0e26233dbf
commit 2acbe443ec
6 changed files with 60 additions and 6 deletions
+7 -1
View File
@@ -20,7 +20,8 @@ enum TimeStyle
TS_SECONDS,
TS_MICROS,
TS_MILLIS,
TS_CLOCK
TS_CLOCK,
TS_START_DATE,
};
@@ -68,6 +69,8 @@ public:
static bool decimalMode;
static TimeStyle timeStyle;
static QString timeFormat;
static QDateTime startDate;
static bool useStartDate;
static QString fullyQualifiedNameSeperator;
@@ -221,6 +224,9 @@ public:
case TS_CLOCK:
return QDateTime::fromMSecsSinceEpoch(timestamp / 1000);
break;
case TS_START_DATE:
return startDate.addMSecs(timestamp / 1000);
break;
case TS_MILLIS:
return (double)timestamp / 1000.0;
break;