Changeset 5756 in ntrip


Ignore:
Timestamp:
Aug 3, 2014, 12:11:58 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnctime.cpp

    r4586 r5756  
    196196    return this->_sec - time1._sec;
    197197  }
     198}
     199
     200bncTime& 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;
    198213}
    199214
     
    279294//
    280295//////////////////////////////////////////////////////////////////////////////
     296bncTime::operator string() const {
     297  return datestr() + '_' + timestr();
     298}
     299
     300//
     301//////////////////////////////////////////////////////////////////////////////
    281302bncTime& bncTime::set(int year, int month, int day,
    282303                      int hour, int min, double sec) {
Note: See TracChangeset for help on using the changeset viewer.