Peripheral Devices
9836 3521 01 573
8.14.4.53 GetDateAndTime
Description: This method returns the current date and time of the target system. (Not compatible with
VisualStudio .NET)
Return type: A RetCodeEnum value. If an unsupported data type is used for the DateAndTime argument
then eRetWrongDataType is returned. If the method is not supported by the connected
target eRetNotSupported is returned. If not connected to a System TC then
eRetCmdNotAllowed is returned.
Syntax: object.GetDatyAndTime(DateAndTime)
The Api object to operate on.
The variable to receive the current date and time of the target.
Since the type is VARIANT variables of different data type can
be passed to the method. Currently the following are
supported:
ï‚· Date. (IDL data type DATE).
ï‚· Long. Will return the date and time as number of seconds
since 1970-01-01 00:00:00.
8.14.4.54 SetDateAndTime
Description: This method sets the current date and time of the target system. (Not compatible with
VisualStudio .NET)
Return type: A RetCodeEnum value. If an unsupported data type is used for the DateAndTime argument
then eRetWrongDataType is returned. If the method is not supported by the connected
target eRetNotSupported is returned. If not connected to a System TC, or if the API device
is not configured as Time Server, then eRetCmdNotAllowed is returned.
Syntax: object.GetDatyAndTime(DateAndTime)
The Api object to operate on.
The date and time to set.
Since the type is VARIANT variables of different data type can
be passed to the method. Currently the following are
supported:
ï‚· Date. (IDL data type DATE).
ï‚· Long. Will return the date and time as number of seconds
since 1970-01-01 00:00:00.