pylupnt.interfaces.gnss_utils.datetime_to_gpsweeks¶
- pylupnt.interfaces.gnss_utils.datetime_to_gpsweeks(dt: datetime, timesys=<Time.UTC: 1>)¶
Convert UTC datetime to GPS week number and seconds into week.
- Returns:
(week, day_of_week, sec_of_week, dt_gps)whereweekis the GPS week number,day_of_weekis 0 for Sunday through 6 for Saturday,sec_of_weekis the seconds into the week, anddt_gpsis the corresponding datetime in the GPS time system.