coledatatime时间怎么实现按天数增加

coledatatime时间如何实现按天数增加
问题:
COleDateTime t1;//开始时间
COleDateTime t2;//结束时间

COleDateTimeSpan timeSpan; //计算时间差
timeSpan = end_date - begin_date; 
long expi_date = timeSpan.GetDays(); 

我现在需要t1+1,t1+2,..t2的时间,也就是需要每天的时间

------解决方案--------------------
COleDateTimeSpan adaySpan = 24 * 60 * 60 ;

while(expi_date >0)

 t1+adaySpan*expi_date;
expi_date--;
}
------解决方案--------------------
C/C++ code

#include <iostream.h>

#include <AfxDisp.h>

int main()
{
    COleDateTime t(2000,5, 31, 0, 0, 0);
    COleDateTimeSpan x(1, 0, 0, 0);

    t += x;
    cout << t.GetMonth() << endl;
    cout << t.GetDay() << endl;
    return 0;
}