PreviousReportDateList
简述
返回指定报告期前N个报告期序列
PreviousReportDateList(Rdate:Integer;N:Integer;Rdatetype:Integer):Array
| 名称 | 类型 | 说明 |
|---|
| Rdate | Integer | 整型,指定报告期 |
| N | Integer | 整型,向前推N个报告期(为负则向后推) |
| Rdatetype | Integer | 整型,报告期类型
|
取值 |
报告期类型 | |
0 |
全部 | |
1 |
一季度 | |
2 |
中报 | |
3 |
三季度 | |
4 |
年报 | |
5 |
年报+中报 | |
6 |
一季度+三季度 |
|
| 返回 | Array | 日期,指定报告期前N个报告期序列 |
//20201231的前4个报告期
return PreviousReportDateList(20201231,4,0);
//返回:array(20200930,20200630,20200331,20191231)