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) where week is the GPS week number, day_of_week is 0 for Sunday through 6 for Saturday, sec_of_week is the seconds into the week, and dt_gps is the corresponding datetime in the GPS time system.