Sylphase SDGPS
The software-defined GPS(/GNSS) toolkit
convert-time

Help

Usage:

convert-time [OPTION]...

Description:

Used to convert between GNSS time and Gregorian time.

Allowed options:

Option Description
--help produce help message
--gnss-time GNSS_TIME GNSS time (e.g. 1298764809.869604404230950606)
--gregorian-time GREGORIAN_TIME Gregorian time (e.g. 2021-03-03T00:00:09.869604404230950606 GPS)
--times-modf FREQUENCY also output GNSS_TIME times a rational frequency (e.g. 5/7) (units: Hertz)

Example 1

To find the corresponding GNSS time for a given Gregorian time e.g. 2021-03-03T00:00:09 use the following command:

sdgps convert-time \
--gregorian-time 2021-03-03T00:00:09

Here is the example output of the previous command:

Gregorian time 2021-03-03T00:00:09 = GNSS time 1298764809.000000000000000000

Example 2

To find the corresponding Gregorian time from a given GNSS time e.g. 1298764809.0 you would use the following command:

sdgps convert-time \
--gnss-time 1298764809.0

Here is the example output of the previous command:

GNSS time 1298764809.000000000000000000 = Gregorian time 2021-03-03T00:00:09.000000000000000000 GPS