Changeset 2252 in ntrip


Ignore:
Timestamp:
Jan 16, 2010, 10:44:35 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctime.cpp

    r2251 r2252  
    66
    77#include "bnctime.h"
     8#include "RTCM3/timeutils.h"
    89
    910using 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 }
    2411
    2512// Constructor
     
    6249  }
    6350  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;
    7351}
    7452
  • trunk/BNC/bnctime.h

    r2251 r2252  
    3131  bncTime&     setmjd(double daysec, int mjd);
    3232  void        reset() {_mjd = 0; _sec = 0;}
    33   static void jdgp(double tjul, double & second, long & nweek);
    3433
    3534  unsigned int _mjd;
Note: See TracChangeset for help on using the changeset viewer.