Changeset 2254 in ntrip


Ignore:
Timestamp:
Jan 16, 2010, 11:11:51 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/test_bnc_qt.cpp

    r2253 r2254  
    5858
    5959  bncTime tt;
    60   tt.set(2010, 1, 10, 10, 45, 0.0);
     60  tt.set(2010, 1, 10, 10, 30, 0.0);
     61  cout << tt.timestr() << " Moscow time (UTC + 3h)" << endl;
    6162
    62   cout << tt.timestr() << endl;
     63  int week = tt.gpsw();
     64  int tow  = int(tt.gpssec());
     65  updatetime(&week, &tow, tow*1000, 1);
     66  bncTime t2(week, tow);
     67  cout << t2.timestr() << " UTC " << endl;
     68
     69  week = tt.gpsw();
     70  tow  = int(tt.gpssec());
     71  updatetime(&week, &tow, tow*1000, 0);
     72  bncTime t3(week, tow);
     73  cout << t3.timestr() << " GPS " << endl;
     74
    6375
    6476//  if (argc != 2) {
Note: See TracChangeset for help on using the changeset viewer.