GetDateTimeUTC Method

NI Vision Builder ActiveX

GetDateTimeUTC Method

Syntax

NIVBAITargetControl.GetDateTimeUTC [TimeZone]

Return Type

double

Purpose

Returns the current date, time, and timezone on the target in Coordinated Universal Time (UTC).

Return Value

Current date and time in Universal Time (UTC). UTC is represented by the number of seconds that have elapsed since 12:00 AM on January 1, 1970.

Parameters

TimeZone as Variant

Offset, in hours, from Coordinated Universal Time (UTC), which indicates the timezone on the target.