Changeset 10533 in ntrip for trunk/BNC/src/bncutils.cpp
- Timestamp:
- Sep 17, 2024, 4:55:28 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r10330 r10533 95 95 #define GPSLEAPSTART 19 /* 19 leap seconds existed at 6.1.1980 */ 96 96 97 static int longyear(int year, int month) 98 { 97 static int longyear(int year, int month) { 99 98 if(!(year % 4) && (!(year % 400) || (year % 100))) 100 99 { … … 105 104 } 106 105 107 int gnumleap(int year, int month, int day) 108 { 106 int gnumleap(int year, int month, int day) { 109 107 int ls = 0; 110 108 const struct leapseconds *l; … … 119 117 120 118 /* Convert Moscow time into UTC (fixnumleap == 1) or GPS (fixnumleap == 0) */ 121 void updatetime(int *week, int *secOfWeek, int mSecOfWeek, bool fixnumleap) 122 { 119 void updatetime(int *week, int *secOfWeek, int mSecOfWeek, bool fixnumleap) { 123 120 int y,m,d,k,l, nul; 124 121 unsigned int j = *week*(7*24*60*60) + *secOfWeek + 5*24*60*60+3*60*60;
Note:
See TracChangeset
for help on using the changeset viewer.