SysGetDateAndTime: Return the current date and time

Help Contents

Introduction

Returns the current date and time as a DATE_AND_TIME value.

Syntax

Informal and Formal Syntax:

SysGetDateAndTime()

Parameters

None

Return Value

The value returned is the current date and time as a DATE_AND_TIME value.

Remarks

Requires Fernhill SCADA Version 3.19 and later.

Examples

ExampleReturn Value
SysGetDateAndTime()DT#2018-01-11-12:00:00.000

Standards Compliance

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

Further Information

SysDateTimeToLocal()

To learn about a function to convert from UTC to local time.

SysDateTimeToUTC()

To learn about a function to convert from local time to UTC.

Date and Time Functions

To learn about functions that use date and time values.

Date and Time Literals

To learn about declaring constant date and time values.

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.