r3 - 12 Feb 2008 - 19:21:49 - JonathanVorceYou are here: TWiki >  Documentation Web  >  WebLinks > UsersGuide > UsersManualOnePage > TimeconvertManual

Timeconvert Application

Description

This application allow the user to convert between time formats associated with GPS. Time formats include: civilian time, Julain day of year and year, GPS week and second of week, Z counts, and Modified Julian Date (MJD).

Command Summary

calgps [options]

where [options] can be

-d, --debug Increase debug level
-v, --verbose Increase verbosity
-h, --help Display argument list.
-A, --ansi = Time "Ansi-Second"
-c, --civil = TIME "Month(numeric) DayOfMonth? Year Hour:Minute:Second"
-R, --rinex-file = TIME "Year(2-digit) Month(numeric) DayOfMonth? Year Hour Minute Second"
-o, --ews = TIME "GPSEpoch 10bitGPSweek SecondsOfWeek?"
-f, --ws = TIME "FullGPSweek SecondsOfWeek? "
-y, --doy = TIME "Year DayOfYear? SecondsOfDay?"
-w, --wz = TIME "FullGPSweek ZCount"
    --z29 = TIME
"29bitZcount"
-Z, --z32 = TIME "32bitZcount"
-j, --julian = TIME "JulianDate"
-m, --mjd = TIME "ModifiedJulianDate"
-u, --unixtime = TIME "UnixSeconds UnixMicroseconds?"
-y, --doy = TIME "Year DayOfYear? SecondsOfDay?"
    --input-format = ARG
Time format to use on input
    --input-time = ARG
Time to be parsed by "input-format" option
-z, --shortweekandzcounts = TIME "10bitGPSweek ZCounts Year"
-F, --format = ARG Time format to use on output
-a, --add-offset = NUM "add NUM seconds to specified time"
-s, --sub-offset = NUM "sutract NUM seconds to specified time"

Usage examples

Example 1.

user@host:~$ timeconvert -R "85 05 06 13 50 02"

Month/Day/Year                    5/6/1985
Hour:Min:Sec                      13:50:02
Modified Julian Date              46191.576412037
GPSweek DayOfWeek SecOfWeek       278 1 136202.000000
FullGPSweek Zcount                278 90801
Year DayOfYear SecondOfDay        1985 126 49802.000000
Unix_sec Unix_usec                484235402 0
Zcount: 29-bit (32-bit)           145842865 (145842865)

Example 2.

timeconvert -o "01 1379 500"

Month/Day/Year                    1/25/2026
Hour:Min:Sec                      00:08:20
Modified Julian Date              61065.005787037
GPSweek DayOfWeek SecOfWeek       355 0 500.000000
FullGPSweek Zcount                2403 333
Year DayOfYear SecondOfDay        2026 25 500.000000
Unix_sec Unix_usec                1769299700 0
Zcount: 29-bit (32-bit)           186122573 (1259864397)

Example 3.

timeconvert -o "01 1379 500" -a "86400"

Month/Day/Year                    1/26/2026
Hour:Min:Sec                      00:08:20
Modified Julian Date              61066.005798600
GPSweek DayOfWeek SecOfWeek       355 1 86900.999000
FullGPSweek Zcount                2403 579333
Year DayOfYear SecondOfDay        2026 26 500.999000
Unix_sec Unix_usec                1769386100 999000
Zcount: 29-bit (32-bit)           186180173 (1259921997)

Example 4.

timeconvert -w "1381 500" -s "200"

Month/Day/Year                    6/25/2006
Hour:Min:Sec                      00:09:10
Modified Julian Date              53911.006365741
GPSweek DayOfWeek SecOfWeek       357 0 550.000000
FullGPSweek Zcount                1381 366
Year DayOfYear SecondOfDay        2006 176 550.000000
Unix_sec Unix_usec                1151194150 0
Zcount: 29-bit (32-bit)           187171182 (724042094)
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
WEBLOGOALT
This site is powered by the TWiki collaboration platformCopyright amp;© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback