From d38a9e353603a88a99396effdff5d156315cd28d Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Mon, 13 Apr 2020 11:34:01 -0400 Subject: [PATCH] Add last date to header output --- dumpSTR/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dumpSTR/main.cpp b/dumpSTR/main.cpp index 4f3e54db..fb6ecd9f 100644 --- a/dumpSTR/main.cpp +++ b/dumpSTR/main.cpp @@ -116,9 +116,10 @@ int main(int argc, char *argv[]) { QDate date = str.edfHdr.startdate_orig.date(); // each STR.edf record starts at 12 noon + int numDays = str.GetNumDataRecords(); - qDebug() << str.filename << " starts at " << date << " for " << str.GetNumDataRecords() - << " days, with " << str.GetNumSignals() << " signals"; + qDebug() << str.filename << " starts at " << date << " for " << numDays + << " days, ending at " << date.addDays(numDays) << " with " << str.GetNumSignals() << " signals"; if (args.size() == 2) { exit(0);