(CAA_DTUtil.library)
Reading and setting of the realtime clock is already supported by modules of the library CAA_RealTimeClock.lib. These modules, however, might not take into account the time zone and a possible switch between summer and standard time.
If an automatic switch is desired all the same, the function blocks of the CAA.DTUtility library can be used for reading and setting the realtime clock. In this case the time switch is done via this library.
The switch between summer and standard time is not done until one of the function blocks ⇘ DTU.GetDateAndTime or ⇘ DTU.SetDateAndTime is called. For this reason it is recommended to read the system time cyclically via function block „DTU.GetDateAndTime“.
If the runtime system supports the automatic switch between summer and standard time, the calls of the library will be forwarded directly to the corresponding functions of library CAA.RealTimeClock and the clock switch will be done by the runtime system.