FixDateTime Property
Returns the date and time of the current fix.
Syntax
Visual Basic
object.FixDateTime
Visual C++
object.GetFixDateTime()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim fixDateTime As Date
'Get fix date and time
fixDateTime = myGPSToolKit.FixDateTime
Visual C++
_variant_t vtFixDateTime;
// Get fix date and time
vtFixDateTime = m_myGPSToolKit.GetFixDateTime();
COleDateTime fixDate(vtFixDateTime);
Remarks
- Internally, FixDateTime is the number of seconds that have elapsed since 30 December 1899.
It is a DATE type in Visual Basic and therefore can be used with all of VB's date and time functions.
In Visual C++ it is easiest to handle this value through the COleDateTime class.
- For a brief period after the communications port has been open this value may report the correct
fix time, but 30 December 1899 as the date. This is because the GPS may report the time of the fix
before reporting the date. When the date is received, the FixDateTime property will be
updated to reflect both date and time.
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_DATE/COleDateTime()) containing the last reported fix date and time.
If no fix date and time data are reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
FixUpdate event
|