This function is used to convert a time as a float into integer seconds and femtoseconds
The GPSTime Class
The primary class for this module is, unsurprisingly, the GPSTime
class. This class has three public attributes, the week_number
, seconds
, and femtoseconds
. The week number is the number of weeks since the start of the GPS epoch, 6 January 1980. The seconds and femtoseconds are the number of seconds and femtoseconds (1e-15
) since the start of the GPS week (starting midnight Saturday night/Sunday morning).
The GPSTime
class also has a property of time_of_week
that returns the time of week as a float. Note that the floating point accuracy of time_of_week
can be as low as tens of picoseconds (1e-12
).
The GPSTime class can be save to and loaded from file using ruamel.yaml
.