prg_date_month_number_determine()
摘要
获取月份名称字符串所对应的月份编号。
语法
prg_date_month_number_determine (month_str)
| 参数 | 类型 | 说明 |
|---|---|---|
month_str |
const char * |
表示月份的字符串(参见详情)。 |
返回类型
int
月份编号;未找到匹配时返回 -1。
头文件
prg_date.h
详情
有效的月份字符串及其对应编号如下。
| 月份 | 编号 |
|---|---|
| Jan | 0 |
| Feb | 1 |
| Mar | 2 |
| Apr | 3 |
| May | 4 |
| Jun | 5 |
| Jul | 6 |
| Aug | 7 |
| Sep | 8 |
| Oct | 9 |
| Nov | 10 |
| Dec | 11 |