...
Anchor
Files
...
clk.h/clk.c
...
Prototype
...
HTML Tablecode | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Table Row (tr) | ||||||||||
Table Cell (td) | ||||||||||
| ||||||||||
Anchor | 1052362 | 1052362 |
| |||||||
CLK_DAY Clk_GetDayOfWk (CLK_YRyr, Anchor | | 1052363 | 1052363 | CLK_MONTH month,|||||||
Anchor | 1051049 | 1051049 | CLK_DAY day);||||||||
Table Row (tr) | ||||||||||
Table Row (tr) | ||||||||||
Table Row (tr) | ||||||||||
Table Row (tr) |
...
yr,
CLK_MONTH month,
CLK_DAY day); |
Arguments
yr
Year value [1900 to 2135].
Anchor
month
month Month value [1 to 12], (January to December).
Anchor
day
day Day value [1 to 31].
...
Returned Values
...
Day of week [1 to 7] (Sunday to Saturday), if no errors. Anchor
CLK_DAY_OF_WK_NONE
, otherwise Anchor
Required Configuration
...
None. Anchor
Notes / Warnings
...
It’s only possible to get a day of week of an epoch supported by Clock: Anchor
- Earliest year is the NTP epoch start year, thus Year (
yr
) must be greater than or equal toCLK_NTP_EPOCH_YR_START
.
...
- Latest year is the Clock epoch end year, thus Year (
yr
) must be less thanCLK_EPOCH_YR_END
.
Example Usage
Anchor | ||||
---|---|---|---|---|
|
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...
|
...
Code Block | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
CLK_DAY day_of_wk; Anchor | | 1070636 | 1070636 | |||||||||||||
Anchor | 1070637 | 1070637 | ||||||||||||||
Anchor | 1070638 | 1070638 | print(“day of week = %u”,||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) | ||||||||||||||||
Table Row (tr) |
...