mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 20:20:44 +00:00
EDFParser - add option to handle EDF files with UTC timestamps
Needed for SleepStyle CPAP as dates in the data files are UTC and not local
This commit is contained in:
parent
f0c7cfc991
commit
c1a99850c6
@ -58,6 +58,12 @@ EDFInfo::~EDFInfo()
|
|||||||
// delete a;
|
// delete a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set timezone to UTC
|
||||||
|
void EDFInfo::setTimeZoneUTC () {
|
||||||
|
TZ_offset = 0;
|
||||||
|
EDFInfo::localNoDST = QTimeZone(TZ_offset);
|
||||||
|
}
|
||||||
|
|
||||||
bool EDFInfo::Open(const QString & name)
|
bool EDFInfo::Open(const QString & name)
|
||||||
{
|
{
|
||||||
if (hdrPtr != nullptr) {
|
if (hdrPtr != nullptr) {
|
||||||
|
@ -142,6 +142,9 @@ class EDFInfo
|
|||||||
|
|
||||||
static QDateTime getStartDT(const QString str); //! \brief Returns the start time using noLocalDST
|
static QDateTime getStartDT(const QString str); //! \brief Returns the start time using noLocalDST
|
||||||
|
|
||||||
|
static void setTimeZoneUTC(); //! \brief Sets noLocalDST to UTC (for EDF files using UTC time)
|
||||||
|
|
||||||
|
|
||||||
// The data members follow
|
// The data members follow
|
||||||
|
|
||||||
static int TZ_offset;
|
static int TZ_offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user