SysDateTimeToUTC - Convert Local Time to UTC

Help Contents

Introduction

Converts a DATE_AND_TIME value from local time to UTC.

Syntax

Informal Syntax:

SysDateTimeToUTC( In )

Formal Syntax:

SysDateTimeToUTC( In:=expression )

Parameters

ParameterTypeDescription
InANY_DATEThe local date and time value to convert to UTC.

Return Value

The return value is the In parameter converted to UTC.

Remarks

Requires Fernhill SCADA Version 3.71 and later.

Examples

ExampleReturn Value
SysDateTimeToUTC(DT#2018-01-10-12:00:00.000)DT#2018-07-10-12:00:00.000
SysDateTimeToUTC(DT#2018-07-10-12:00:00.000)DT#2018-07-10-11:00:00.000

Note: The return values are based on the time zone of London, England.

Standards Compliance

The function SysDateTimeToUTC is an extension to the IEC 61131-3 standard.

Further Information

SysDateTimeToLocal()

For a function to convert a UTC Date and Time value to local time.

System Functions

To learn about other system functions.

Elementary Data Types

To learn about the different types supported by Fernhill SCADA.

Common Elements

To learn about other IEC 61131-3 Common Elements.

Glossary

For the meaning of terms used in Fernhill SCADA.