UTC_TO_LOCAL
Function Name |
UTC_TO_LOCAL |
---|---|
Description |
Outputs the time provided by Input 1 in Local time format. This allows the ST program to make adjustments according to local time changes such as British Summer Time. Local time settings are defined by the operating system. |
Arguments |
Input 1 {DATE_AND_TIME - UTC time format} For more information on the data types for the inputs and outputs, see Data Type Hierarchy. |
Returns |
Output {DATE_AND_TIME - Local time format} |
Function Block Diagram - UTC_TO_LOCAL:
The UTC_TO_LOCAL function converts a date and time input from Coordinated Universal Time into local time. In the example shown above, the UTC_TO_LOCAL function applies the local time settings to the input time and date. In this case, the UTC_TO_LOCAL function takes the input time and adds 1 hour for the output (the local time settings are 1 hour in advance).
ST Program - UTC_TO_LOCAL:
The syntax for a UTC_TO_LOCAL function in an ST Program is:
Output := UTC_TO_LOCAL (Input 1);
Where Output and Input 1 are defined as variables earlier in the ST program. The Input 1 variable represents a Date and Time value.
Further Information
Time Zones: see Time Zone Support in Geo SCADA Expert in the Geo SCADA Expert Guide to Core Configuration.