...
Files
clk.h/clk.c
Prototype
Code Block |
---|
|
CPU_BOOLEAN Clk_SetTZ (CLK_TZ_SEC tz_sec); |
Arguments
tz_sec
Time zone offset (in seconds, ± from UTC).
...
- Between ±12 hours (±43200 seconds)
- Multiples of 15 minutes
Example Usage
Anchor |
---|
| Listing - Clk_SetTZ() Example Usage |
---|
| Listing - Clk_SetTZ() Example Usage |
---|
|
Code Block |
---|
language | cpp |
---|
title | Listing - Clk_SetTZ() Example Usage |
---|
linenumbers | true |
---|
|
CLK_TZ_SEC tz_sec;
CPU_BOOLEAN valid;
tz_sec = -5 * 3600;
valid = Clk_SetTZ(tz_sec);
if (valid == DEF_OK) {
printf("Clock Set TZ successful\n\r");
} else {
printf("Clock Set TZ error\n\r");
} |