Changeset 6812 in ntrip for trunk/BNC/src/bnctime.h
- Timestamp:
- May 5, 2015, 3:44:39 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src
- Property svn:ignore
-
old new 5 5 debug 6 6 release 7 html
-
- Property svn:ignore
-
trunk/BNC/src/bnctime.h
r5742 r6812 11 11 bncTime(const std::string& isoString); 12 12 13 /** 14 * Set GPS time. 15 * @param gpsw GPS week 16 * @param gpssec GPS time of week in seconds 17 * @return reference to current instance 18 */ 13 19 bncTime& set(int gpsw, double gpssec); 14 20 bncTime& set(int year, int month, int day, int hour, int min, double sec); … … 16 22 bncTime& setmjd(double daysec, int mjd); 17 23 bncTime& setmjd(double mjddec); 24 /** 25 * Set GPS time relative to current time. 26 * @param msec milliseconds of GPS week 27 * @return reference to current instance 28 */ 29 bncTime &set(int msec); 30 /** 31 * Set GPS time relative to current time. 32 * @param msec milliseconds of current GPS day 33 * @return reference to current instance 34 */ 35 bncTime &setTOD(int msec); 36 /** 37 * Set GLONASS time relative to current time. 38 * @param msec milliseconds of GLONASS day 39 * @return reference to current instance 40 */ 41 bncTime &setTk(int msec); 42 /** 43 * Set BDS time relative to current time. 44 * @param msec milliseconds of BDS week 45 * @return reference to current instance 46 */ 47 bncTime &setBDS(int msec); 48 49 /** 50 * Set BDS time. 51 * @param year 4 digit year 52 * @param month month in year (1..12) 53 * @param day day of month (1..31) 54 * @param hour hour of day (0..23) 55 * @param min minute of hopur (0..59) 56 * @param sec second of minutte (0..59,60) 57 * @return reference to current instance 58 */ 59 bncTime &setBDS (int year, int month, int day, int hour, int min, double sec); 18 60 19 61 void reset() {_mjd = 0; _sec = 0;} 20 62 unsigned int mjd() const; 21 63 double daysec() const; 64 /** Get GPS week. 65 * @return GPS week number 66 */ 22 67 unsigned int gpsw() const; 68 /** Get Seconds in GPS week. 69 * @return time of GPS week in seconds 70 */ 23 71 double gpssec() const; 72 /** Get BDS/Beidou week. 73 * @return BDS week number 74 */ 75 unsigned int bdsw() const; 76 /** Get Seconds in BDS/Beidou week. 77 * @return time of BDS week in seconds 78 */ 79 double bdssec() const; 24 80 double mjddec() const {return (_mjd + _sec / 86400.0);} 25 81 void civil_date (unsigned int& year, unsigned int& month,
Note:
See TracChangeset
for help on using the changeset viewer.