Changeset 3988 in ntrip
- Timestamp:
- Apr 21, 2012, 7:04:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctime.cpp
r3987 r3988 22 22 bncTime::bncTime(const std::string& isoString) { 23 23 if (!isoString.empty()) { 24 QDateTime dateTime = QDateTime::fromString(isoString.c_str(), Qt::ISODate); 24 QDateTime dt = QDateTime::fromString(isoString.c_str(), Qt::ISODate); 25 this->set(dt.date().year(), dt.date().month(), dt.date().day(), 26 dt.time().hour(), dt.time().minute(), 27 dt.time().second() + dt.time().msec()/1000.0); 25 28 } 26 29 else {
Note:
See TracChangeset
for help on using the changeset viewer.