Skip to content

Commit 0be84b4

Browse files
committed
Missing func
1 parent 7b415d6 commit 0be84b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gnss_time.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ double gps_time_to_decimal_years(const gps_time_t *time) {
529529
return (double)utc.year + (double)utc.year_day / days_in_year;
530530
}
531531

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+
532537
/** Transformation of GLONASS-M current data information into gps_time_t.
533538
*
534539
* Reference: GLONASS ICD Edition 5.1 2008

0 commit comments

Comments
 (0)