Clk_GetDayOfWk()
Get the day of week.
Files
clk.h/clk.c
Prototype
Arguments
yr
Year value [1900 to 2135].
month
Month value [1 to 12], (January to December).
day
Day value [1 to 31].
Returned Values
Day of week [1 to 7] (Sunday to Saturday), if no errors.
CLK_DAY_OF_WK_NONE
, otherwise
Required Configuration
None.
Notes / Warnings
It’s only possible to get a day of week of an epoch supported by Clock:
yr
) must be greater than or equal to CLK_NTP_EPOCH_YR_START
.yr
) must be less than CLK_EPOCH_YR_END
.Example Usage