I have question, what is ideal way to manipulate with varible of DATE_AND_TIME (DT) type. I want to make Visu for changing RTC time on Raspberry. My system CODESYS V3.5 SP14 Patch2.
I get time from system RTC clock with this function:
UtcTime := SysTimeRtcGet
Now i need e.g. add one hour or one month and write UtcTime back to system with SysTimeRtcSet
I tried instal OSCAT
library and use function HOUR_OF_DT, but compiler say: "HOUR_OF_DT not defined"
. I don´t know why, only in manual is writen, that OSCAT support only 32bit
system and my Raspberry 3B+ is 64bit
Is there some oficial system library to work easy with date and time?
Thanks for info, Lubos.