Changeset 4586 in ntrip for trunk/BNC/src/bnctime.cpp


Ignore:
Timestamp:
Aug 29, 2012, 6:24:00 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4278 r4586  
    6464    _mjd--;
    6565  }
     66  return *this;
     67}
     68
     69//
     70//////////////////////////////////////////////////////////////////////////////
     71bncTime& bncTime::setmjd(double mjddec) {
     72  _mjd = static_cast<unsigned int>(mjddec);
     73  _sec = (mjddec - _mjd)*86400.0;
    6674  return *this;
    6775}
Note: See TracChangeset for help on using the changeset viewer.