计算星期几的C代码
static UCHAR ClkDay; /* Counters for local
DATE */
static UCHAR ClkDOW; /* Day of week (0 is
Sunday) */
static UCHAR ClkMonth;
static UINT ClkYear;
typedef struct clk_month
{
UCHAR MonthDays; /* Number of days in each
month */
char *MonthName; /* Name of the
month */
UCHAR MonthVal; /* Value used to compute day of the
week */
} CLK_MONTH;
static CLK_MONTH code ClkMonthTbl[] = { /* MONTHS
TABLE */
{0, "", 0}, /* Invalid
month */
{31, "January ", 6}, /*
January */
{28, "February ", 2}, /* February (note leap years are handled
计算星期几的C代码
0
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论
热点关注

