Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Files

clk.h/clk.c

Prototype

Code Block
languagecpp
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
languagecpp
titleListing - Clk_SetTZ() Example Usage
linenumberstrue
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");
}