EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

SysTimeRtcConvertDateToUtc

Function Description

This function converts a date and time in SYSTIMEDATE format into the corresponding time stamp value. The time stamp indicates the number of seconds since January 1st, 1970 00:00:00.

Graphical Representation

G-SE-0003922.1.gif-high.gif

 

 

I/O Variables Description

Input/Output

Type

Description

pDate

SYSTIMEDATE

Date and time to be converted.

pdwTimestampUtc

DWORD

Time stamp calculated from pDate.

Output

Type

Description

SysTimeRtcConvertDateToUtc

UDINT

Runtime system error code (refer to CmpErrors.library):

0 = no error detected

NOTE: An example using this function is provided in this document.