Changeset 5756 in ntrip
- Timestamp:
- Aug 3, 2014, 12:11:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnctime.cpp
r4586 r5756 196 196 return this->_sec - time1._sec; 197 197 } 198 } 199 200 bncTime& bncTime::operator+=(double sec) { 201 _sec+=sec; 202 203 while ( _sec >= 86400 ) { 204 _sec-=86400; 205 _mjd++; 206 } 207 while ( _sec < 0 ) { 208 _sec+=86400; 209 _mjd--; 210 } 211 212 return *this; 198 213 } 199 214 … … 279 294 // 280 295 ////////////////////////////////////////////////////////////////////////////// 296 bncTime::operator string() const { 297 return datestr() + '_' + timestr(); 298 } 299 300 // 301 ////////////////////////////////////////////////////////////////////////////// 281 302 bncTime& bncTime::set(int year, int month, int day, 282 303 int hour, int min, double sec) {
Note:
See TracChangeset
for help on using the changeset viewer.