You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
590 B
23 lines
590 B
#include "ph7int.h" |
|
|
|
static const char *zEngDay[] = { |
|
"Sunday", "Monday", "Tuesday", "Wednesday", |
|
"Thursday", "Friday", "Saturday" |
|
}; |
|
static const char *zEngMonth[] = { |
|
"January", "February", "March", "April", |
|
"May", "June", "July", "August", |
|
"September", "October", "November", "December" |
|
}; |
|
static const char *GetDay(sxi32 i) { |
|
return zEngDay[ i % 7 ]; |
|
} |
|
static const char *GetMonth(sxi32 i) { |
|
return zEngMonth[ i % 12 ]; |
|
} |
|
PH7_PRIVATE const char *SyTimeGetDay(sxi32 iDay) { |
|
return GetDay(iDay); |
|
} |
|
PH7_PRIVATE const char *SyTimeGetMonth(sxi32 iMonth) { |
|
return GetMonth(iMonth); |
|
} |