Function mwalib::convert_unixtime_to_gpstime
source · [−]pub fn convert_unixtime_to_gpstime(
unixtime_ms: u64,
mwa_start_gpstime_ms: u64,
mwa_start_unixtime_ms: u64
) -> u64
Expand description
Returns a UNIX time given a GPStime
NOTE: see convert_gpstime_to_unixtime
for more details.
Arguments
-
unixtime_ms
- GPS time (in ms) you want to convert to UNIX timestamp -
mwa_start_gps_time_ms
- Scheduled GPS start time (in ms) of observation according to metafits. -
mwa_start_unix_time_ms
- Scheduled UNIX start time (in ms) according to the metafits (GOODTIM-QUACKTIM).
Returns
- The GPS time (in ms) converted from the
unixtime_ms
.