Changeset 3986 in ntrip for trunk


Ignore:
Timestamp:
Apr 21, 2012, 6:59:29 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctime.cpp

    r2923 r3986  
     1
     2#include <qdatetime.h>
    13#include <time.h>
    24#include <cmath>
     
    1618}
    1719 
     20// Constructor (from ISO String yyyy-mm-ddThh:mm:ss)
     21//////////////////////////////////////////////////////////////////////////////
     22bncTime::bncTime(const std::string& isoString) {
     23  if (!isoString.empty()) {
     24    QDateTime dateTime = QDateTime::fromString(isoString.c_str(), Qt::ISODate);
     25  }
     26}
     27
    1828//
    1929//////////////////////////////////////////////////////////////////////////////
  • trunk/BNC/bnctime.h

    r3752 r3986  
    99  bncTime() {this->reset();}
    1010  bncTime(int gpsw, double gpssec);
     11  bncTime(const std::string& isoString);
    1112
    1213  bncTime& set(int gpsw, double gpssec);
Note: See TracChangeset for help on using the changeset viewer.