跳至内容

Year

年份

返回当前年份,即最后一个已知服务器时间的年份。

int  Year();

返回值

当前年份。

注意

在测试过程中,使用了已知最后的服务器时间作为模型依据。

示例:

// return if the date is within the range from 1 Jan. to 30 Apr., 2006.
    if(Year()==2006 && Month()<5)
    return(0);
最后更新于