UTCToLocalTime

The UTCToLocalTime function allows a script to convert a UTC time value into a local time value,

Syntax

UTCToLocalTime (Time)

Description

Converts a UTC value into a local time value.

Arguments

Time {DateTime}

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

Returns

Time {DateTime}. A local time value.

Example:

LocalTime = UTCToLocalTime (UTCTimeInput)

Where:

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

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


Disclaimer

ClearSCADA 2017 R2