LOCAL_TO_UTC
Function Name |
LOCAL_TO_UTC |
---|---|
Description |
Outputs the local time provided by Input 1 in UTC time format. Local time settings are defined by the operating system. |
Arguments |
Input 1 {DATE_AND_TIME - Local time format} For more information on the data types for the inputs and outputs, see Data Type Hierarchy. |
Returns |
Output {DATE_AND_TIME - UTC time format} |
Example:
Function Block Diagram - LOCAL_TO_UTC:
The LOCAL_TO_UTC function converts a date and time input from local time into Coordinated Universal Time. In the example shown above, the LOCAL_TO_UTC function takes the local time input and removes the local time settings to provide an output in UTC. In this case, the LOCAL_TO_UTC function takes the input time and removes 1 hour for the output (the local time settings are 1 hour in advance).
ST Program - LOCAL_TO_UTC:
The syntax for a LOCAL_TO_UTC function in an ST Program is:
Output := LOCAL_TO_UTC (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.