TimeUtilities.GetGPSWeekAndSecondsOfWeek(TimeSpan, String, String, Variable) Method

Top 

Description

Returns the GPS week number and seconds of week from the system and reference specified by inputSystem and inputReference.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

TimeUtilities.GetGPSWeekAndSecondsOfWeek(

TimeSpan time,


String inputSystem,


String inputReference,


Variable rollover)

 

 

Arguments

time


Description:

The time value to convert.

Units:

day

 

 

inputSystem


Description:

The system of the input time.

Valid Values:

Value

Label

"TAI"

International Atomic Time

"UTC"

Coordinated Universal Time

"TDT"

Terrestrial Dynamical Time

"TDB"

Barycentric Dynamical Time

"UT1"

Universal Time Principle Form

"GPS"

Global Positioning System Time

 

 

 

inputReference


Description:

The reference of the input time.

Valid Values:

Value

Label

"Julian Date"

Julian Date (Jan 1 4713 BCE 12:00:00.000 TAI)

"MJD GSFC"

GSFC Modified Julian Date (Jan 05 1941 12:00:00.000 TAI)

"MJD USNO"

USNO Modified Julian Date (Nov 17 1858 00:00:00.000 TAI)

"MJD GPS"

GPS Modified Julian Date (Jan 06 1980 00:00:00.000 UTC)

"MJD 1950"

Besselian Date 1950.0 (Dec 31 1949 22:09:46.862 TAI)

 

 

 

rollover


Description:

Determines whether or not to use GPS rollover.

Valid Values:

Value

Label

0

false

1

true

 

 

 

 

Return Value

Type:

Array of number (size = 2)

 

 

Returns the GPS week number and seconds of week for the input time.

 

Syntax

myArray1 = TimeTools.GetGPSWeekAndSecondsOfWeek(myTimeSpan1, myString1, myString2, myVariable1);

 

 

See also

TimeUtilities Object

TimeSpans Guide

Parsing Dates and Times