LocalTimeToUTC

The LocalTimeToUTC function allows a script to convert a local time value into a Coordinated Universal Time (UTC) value,

Syntax

LocalTimeToUTC (Time)

Description

Converts a local time value into a UTC value.

Arguments

Time {DateTime}

The local time DateTime value that is to be converted into a UTC DateTime value.

Returns

Time {DateTime}. A UTC time value.

Example:

UTCTime = LocalTimeToUTC (LocalTimeInput)

Where:

UTCTime is the name of the variable that is used to store the result of the conversion.

LocalTimeInput is the name of the variable that stores the local time that is to be converted to UTC. The LocalTimeInput has to store a DateTime value.


Disclaimer

Geo SCADA Expert 2019