TYPE TIMESTRUCT

TYPE TIMESTRUCT
STRUCT
   wYear        : WORD;
   wMonth       : WORD;
   wDayOfWeek   : WORD;
   wDay         : WORD;
   wHour        : WORD;
   wMinute      : WORD;
   wSecond      : WORD;
   wMilliseconds: WORD;
END_STRUCT
END_TYPE

wYear: the year: 1970 ~ 2106;

wMonth : the month: 1 ~ 12 (January = 1, February = 2, etc.); 

wDayOfWeek: the day of the week: 0 ~ 6 (Sunday = 0, Monday = 1 etc. );

wDay : the day of the month: 1 ~ 31;

wHour: hour: 0 ~ 23;

wMinute : minute: 0 ~ 59;

wSecond : second: 0 ~ 59;

wMilliseconds : millisecond: 0 ~ 999;

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.7.0 and above

BCxxxx (165)

Standard.Lb6, PlcSystemBC.Lb6, TcPlcUtilitiesBC.Lb6