/// <summary> /// 日历时间转换为GNSS周周秒时间 /// </summary> /// <param name="calendar">日历</param> /// <param name="gnssOriginMjdDay">GNSS时间起算点</param> /// <returns></returns> public GnssTime(Calendar calendar, GnssSystem gnssSystem = null) { if (gnssSystem == null) { gnssSystem = GnssSystem.Gps; } this.GnssSystem = gnssSystem; int Week; Decimal secondsOfWeek; TimeConvert.CalendarToGnssTime(calendar, gnssSystem.OriginMjdDay, out Week, out secondsOfWeek); this.GnssWeek = Week; this.SecondsOfWeek = new Second(secondsOfWeek); }