Changeset 2252 in ntrip
- Timestamp:
- Jan 16, 2010, 10:44:35 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctime.cpp
r2251 r2252 6 6 7 7 #include "bnctime.h" 8 #include "RTCM3/timeutils.h" 8 9 9 10 using namespace std; 10 11 double djul(long jj, long mm, double tt) {12 long ii, kk;13 double djul ;14 if( mm <= 2 ) {15 jj = jj - 1;16 mm = mm + 12;17 }18 ii = jj/100;19 kk = 2 - ii + ii/4;20 djul = (365.25*jj - fmod( 365.25*jj, 1.0 )) - 679006.0;21 djul = djul + floor( 30.6001*(mm + 1) ) + tt + kk;22 return djul;23 }24 11 25 12 // Constructor … … 62 49 } 63 50 return *this; 64 }65 66 //67 //////////////////////////////////////////////////////////////////////////////68 void bncTime::jdgp(double tjul, double & second, long & nweek) {69 double deltat;70 deltat = tjul - 44244.0 ;71 nweek = (long) floor(deltat/7.0);72 second = (deltat - (nweek)*7.0)*86400.0;73 51 } 74 52 -
trunk/BNC/bnctime.h
r2251 r2252 31 31 bncTime& setmjd(double daysec, int mjd); 32 32 void reset() {_mjd = 0; _sec = 0;} 33 static void jdgp(double tjul, double & second, long & nweek);34 33 35 34 unsigned int _mjd;
Note:
See TracChangeset
for help on using the changeset viewer.