Versions Compared

Key

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

...

Files

clk.h/clk.c

Prototype

Code Block
languagecpp
CLK_DAY  Clk_GetDayOfWk (CLK_YR     yr,
                         CLK_MONTH  month,
                         CLK_DAY    day);


Arguments

yr

Year value [1900 to 2135].

...

  • Earliest year is the NTP epoch start year, thus Year (yr) must be greater than or equal to CLK_NTP_EPOCH_YR_START.
  • Latest year is the Clock epoch end year, thus Year (yr) must be less than CLK_EPOCH_YR_END.

Example Usage

Anchor
Listing - Clk_GetDayOfWk() Example Usage
Listing - Clk_GetDayOfWk() Example Usage

Code Block
languagecpp
titleListing - Clk_GetDayOfWk() Example Usage
linenumberstrue
CLK_DAY  day_of_wk;
 
day_of_wk = Clk_GetDayOfWk(2010, 9, 18);
printf("day of week = %u", day_of_wk);