This function is used to set the specified timezone settings.
NOTE: The execution of the function SysTimeRtcSetTimezone may take several hundred milliseconds. The increased execution time is caused by storing the TimezoneInformation parameter to a configuration file in the controller.
To help to avoid blocking other tasks by executing this function, implement one of the following measures:
oUse the asynchronous mechanism provided by the AsyncManager library to outsource the function call to an external task.
oImplement the function call in a separate task with suitable task configuration.
Input/Output |
Type |
Description |
---|---|---|
pTimezone |
Timezone settings to be set for the controller. |
Output |
Type |
Description |
---|---|---|
SysTimeRtcSetTimezone |
UDINT |
Runtime system error code (refer to CmpErrors.library): 0 = no error detected |