From 9f31fd5e39140557f41a8e3b4e1d2199dfa44e86 Mon Sep 17 00:00:00 2001 From: LoudSnorer Date: Tue, 28 Nov 2023 15:06:38 -0500 Subject: [PATCH] added debug macro to display time in UTC --- oscar/test_macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oscar/test_macros.h b/oscar/test_macros.h index 30ae11cf..97564ab7 100644 --- a/oscar/test_macros.h +++ b/oscar/test_macros.h @@ -73,6 +73,7 @@ To turn off the the test macros. #define DATE( EPOCH ) << QDateTime::fromMSecsSinceEpoch( EPOCH ).toString("dd MMM yyyy") //display the date and Time of an epoch time stamp "qint64" #define DATETIME( EPOCH ) << QDateTime::fromMSecsSinceEpoch( EPOCH ).toString("ddMMMyyyy hh:mm:ss.zzz") +#define DATETIMEUTC( EPOCH ) << QDateTime::fromMSecsSinceEpoch( EPOCH ,Qt::UTC).toString("ddMMMyyyy hh:mm:ss.zzz UTC") #define IF( EXPRESSION ) if (EXPRESSION ) #define IFD( EXPA , EXPB ) bool EXPA = EXPB @@ -133,6 +134,7 @@ To turn off the the test macros. #define FULLNAME( id) #define DATE( XX ) #define DATETIME( XX ) +#define DATETIMEUTC( XX ) #define COMPILER #define IF( XX ) #define IFD( XX , YY )