SysGetTimeOfDay: Return the current time of day

Help Contents

Introduction

Returns the current time of day as a TIME_OF_DAY value.

Syntax

Informal and Formal Syntax:

SysGetTimeOfDay()

Parameters

None

Return Value

The value returned is the current time of day as a TIME_OF_DAY value.

Remarks

Requires Fernhill SCADA Version 3.19 and later.

Examples

ExampleReturn Value
SysGetTimeOfDay()TOD#12:00:00.000

Standards Compliance

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

Further Information

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.