CONCAT_DATE_TOD - Adds a time of day value to a date

Help Contents

Introduction

Adds a time of day value to a date returning a date and time value.

Syntax

Informal Syntax:

CONCAT_DATE_TOD( DATE, TOD )

Formal Syntax:

CONCAT_DATE_TOD( DATE:=expression, TOD:=expression )

Parameters

ParameterTypeDescription
DATEDATEThe date value.
TODTIME_OF_DAYThe time of day value to add to the date value.

Return Value

The function CONCAT_DATE_TOD returns a date and time value, the result of DATE + TOD.

Examples

ExampleReturn Value
CONCAT_DATE_TOD( DATE#2013-01-10, TOD#08:59:00.000 )DT#2013-01-10-08:59:00.000

Standards Compliance

Table 30.12 - IEC 61131-3 Second Edition.

Table 36.1a - IEC 61131-3 Third Edition.

Further Information

Date and Time Functions

For other date and time functions.

Glossary

For the meaning of terms used in Fernhill SCADA.