- Timestamp:
- Sep 7, 2006, 9:16:28 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r127 r129 85 85 QString intStr = settings.value("rnxIntr").toString(); 86 86 QString hlpStr; 87 88 QTime nextTime; 89 QDate nextDate; 90 87 91 if (intStr == "15 min") { 88 92 char ch = 'A' + datTim.time().hour(); … … 90 94 if (datTim.time().minute() < 15) { 91 95 hlpStr += "00"; 96 nextTime.setHMS(datTim.time().hour(), 15, 0); 97 nextDate = datTim.date(); 92 98 } 93 99 else if (datTim.time().minute() < 30) { 94 100 hlpStr += "15"; 101 nextTime.setHMS(datTim.time().hour(), 30, 0); 102 nextDate = datTim.date(); 95 103 } 96 104 else if (datTim.time().minute() < 45) { 97 105 hlpStr += "30"; 106 nextTime.setHMS(datTim.time().hour(), 45, 0); 107 nextDate = datTim.date(); 98 108 } 99 109 else { 100 110 hlpStr += "45"; 111 if (datTim.time().hour() < 23) { 112 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0); 113 nextDate = datTim.date(); 114 } 115 else { 116 nextTime.setHMS(0, 0, 0); 117 nextDate = datTim.date().addDays(1); 118 } 101 119 } 102 120 } … … 104 122 char ch = 'A' + datTim.time().hour(); 105 123 hlpStr = ch; 124 if (datTim.time().hour() < 23) { 125 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0); 126 nextDate = datTim.date(); 127 } 128 else { 129 nextTime.setHMS(0, 0, 0); 130 nextDate = datTim.date().addDays(1); 131 } 106 132 } 107 133 else { 108 134 hlpStr = "0"; 109 } 135 nextTime.setHMS(0, 0, 0); 136 nextDate = datTim.date().addDays(1); 137 } 138 _nextCloseEpoch = QDateTime(nextDate, nextTime); 110 139 111 140 path += _statID.left(4) + -
trunk/BNC/bncrinex.h
r125 r129 29 29 QStringList _headerLines; 30 30 bool _headerWritten; 31 QDateTime _nextCloseEpoch; 31 32 }; 32 33
Note:
See TracChangeset
for help on using the changeset viewer.