DateConverter

DateConverter (FUN)

FUNCTION DateConverter : RTS_IEC_RESULT

Use the DateConverter to get the date variables as a string for simple date and timestamp logging \

  • Pass the address of the referenced timestamp (DT format) to the function and writes the result to the referenced values as a string.\

  • To use the complex result, pass the address of the referenced structure tComplexDateAndTime.\

\

InOut:

Scope
Name
Type
Initial
Comment

Return

DateConverter

RTS_IEC_RESULT

Input

pTimestamp

POINTER TO DATE_AND_TIME

Pass the timestamp

Input

pResult

POINTER TO STRING

Simple result as a string

Input

pComplexResult

POINTER TO tComplexDateAndTime

complex result as a structure

Input

sDateDelimiter

STRING(1)

‘.’

The delimiter for date display DDMMYYYY e.g.: DD.MM.YYYY

Input

sTimeDelimiter

STRING(1)

‘:’

The delimiter for time display hhmmss

Input

sDateTimeDelimiter

STRING(1)

‘ ‘

The delimiter between the Date and time DDMMYYYYhhmmss

Input

xAddLeadingZeroForSingleDigitsDate

BOOL

Set to true if you want to add leading zeros to date formats. e.g.: March (3) will add March (03)

Zuletzt aktualisiert