Click or drag to resize

GlobalPositioningSystemDate Structure

A date and time format consisting of a week number and a time of week and utilizing the GlobalPositioningSystemTime time standard.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public struct GlobalPositioningSystemDate : IComparable<GlobalPositioningSystemDate>, 
	IComparable, IEquatable<GlobalPositioningSystemDate>, IEquatableEpsilon<GlobalPositioningSystemDate>

The GlobalPositioningSystemDate type exposes the following members.

Constructors
  NameDescription
Public methodGlobalPositioningSystemDate(DateTime)
Initializes a new instance from a DateTime.
Public methodGlobalPositioningSystemDate(GregorianDate)
Initializes a new instance from a GregorianDate.
Public methodGlobalPositioningSystemDate(JulianDate)
Initializes a new instance from a JulianDate.
Public methodGlobalPositioningSystemDate(Int32, Double)
Initializes a new instance from a week number and a number of seconds into the week.
Public methodGlobalPositioningSystemDate(Int32, DayOfWeek, Double)
Initializes a new instance from a week number, a day of the week, and a number of seconds into the day.
Public methodGlobalPositioningSystemDate(Int32, Int32, Int32, Int32, Int32)
Initializes a new instance from the time parameters found in a PerformanceAssessmentRecord.
Top
Properties
  NameDescription
Public propertyDayOfWeek
Gets the day of the week.
Public propertyKPoints
Gets the K-Points (15-minute segments) since the most recent GPS epoch.
Public propertyRolloverCount
Gets the number of times that the GPS week counter has rolled over since JulianDateOfEpoch.
Public propertyRolloverDate
Gets the most recent rollover of the GPS week counter. The week number returned by WeekSinceRollover is relative to this date.
Public propertySecondsOfDay
Gets the elapsed whole and fractional seconds since the start of the day.
Public propertySecondsOfWeek
Gets the elapsed whole and fractional seconds since the start of the week.
Public propertyTotalDays
Gets the total number of whole and fractional days that have elapsed since JulianDateOfEpoch.
Public propertyTotalDaysSinceRollover
Gets the total number of whole and fractional days that have elapsed since RolloverDate.
Public propertyWeek
Gets the week number, which is the number of weeks since January 6, 1980.
Public propertyWeekSinceRollover
Gets the week number since the most recent GPS week rollover. In the GPS system, the week is represented as a 10 bit number so it can only be a value from 0 to 1023 before rolling over back to 0.
Public propertyZCounts
Gets the Z-Counts (1.5 second segments) since the most recent GPS Epoch.
Top
Methods
  NameDescription
Public methodAdd
Adds a Duration to this date, producing a new date.
Public methodAddDays
Adds the specified number of days to this date and returns the new date.
Public methodAddSeconds
Adds the specified number of seconds to this date and returns the new date.
Public methodCompareTo(GlobalPositioningSystemDate)
Compares this instance with another instance of the same type.
Public methodCompareTo(Object)
Compares this instance with another instance of the same type.
Public methodEquals(GlobalPositioningSystemDate)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEqualsEpsilon
Returns true if this date is within epsilon seconds of the specified date. That is, in order for the dates to be considered equal (and for this function to return true), the absolute value of the difference between them, in seconds, must be less than or equal to epsilon.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMinutesDifference
Computes the number of minutes that have elapsed from this date to the other date.
Public methodSecondsDifference
Computes the number of seconds that have elapsed from this date to the other date.
Public methodSubtract(Duration)
Subtracts a Duration from this date, producing a new date.
Public methodSubtract(GlobalPositioningSystemDate)
Subtracts another date from this date.
Public methodToDateTime
Converts this GPS Time to a .NET standard DateTime with a default time standard of Global Positioning System Time.
Public methodToJulianDate
Returns a JulianDate that is equivalent to this instance.
Public methodToString
Returns the value of this GPS Time in RolloverCount:WeekSinceRollover:SecondsOfWeek, where RolloverCount is the number of times that the GPS week counter has rolled over since JulianDateOfEpoch.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds a Duration to a GlobalPositioningSystemDate, producing a new date.
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic memberGreaterThan
Returns true if left occurs after right.
Public operatorStatic memberGreaterThanOrEqual
Returns true if left occurs after or at the same time as right.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Public operatorStatic memberLessThan
Returns true if left occurs before right.
Public operatorStatic memberLessThanOrEqual
Returns true if left occurs before or at the same time as right.
Public operatorStatic memberSubtraction(GlobalPositioningSystemDate, Duration)
Subtracts a Duration from a date, yielding a new GlobalPositioningSystemDate.
Public operatorStatic memberSubtraction(GlobalPositioningSystemDate, GlobalPositioningSystemDate)
Subtracts a date from another date, yielding a Duration.
Top
Fields
  NameDescription
Public fieldStatic memberJulianDateOfEpoch
The GPS epoch of 6 January 1980 00:00:00 UTC expressed as a JulianDate in the GlobalPositioningSystemTime.
Public fieldStatic memberWeekWrapValue
The number of weeks after which the week count wraps around to zero.
Top
Remarks
Internally, this class stores the date as a week number, a day of the week, and a number of seconds into the day. This enables it to represent a date with the same precision as the JulianDate type.
See Also