F_BA_DateTimeString

F_BA_DateTimeString 1:

The function F_BA_DateTimeString of return type STRING(19) converts a date stDateTime into a STRING of format DD.MM.YYYY hh:mm:ss.

Decimal values smaller than 10 are preceded by a "0", e.g. the month September is displayed with "09" instead of simply "9".

Implausible values (e.g. month > 12) or entries evaluated as unspecified, i.e. with 16#FF, are output with "**" or "****" for the year specification.

Syntax

FUNCTION F_BA_DateTimeString : STRING(19)
VAR_IN_OUT
  stDateTime    : ST_BA_DateTime;
END_VAR

F_BA_DateTimeString 2: Inputs/outputs

Name

Type

Description

stDateTime

ST_BA_DateTime

Date and time from which the return string is formed.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0