- Timestamp:
- Jan 16, 2010, 11:11:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/test_bnc_qt.cpp
r2253 r2254 58 58 59 59 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; 61 62 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 63 75 64 76 // if (argc != 2) {
Note:
See TracChangeset
for help on using the changeset viewer.