We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b415d6 commit 0be84b4Copy full SHA for 0be84b4
src/gnss_time.c
@@ -529,6 +529,11 @@ double gps_time_to_decimal_years(const gps_time_t *time) {
529
return (double)utc.year + (double)utc.year_day / days_in_year;
530
}
531
532
+gps_time_t decimal_years_to_gps_time(const double years) {
533
+ const double mjd = decimal_year_to_mjd(years);
534
+ return mjd2gps(mjd);
535
+}
536
+
537
/** Transformation of GLONASS-M current data information into gps_time_t.
538
*
539
* Reference: GLONASS ICD Edition 5.1 2008
0 commit comments