TimeDayOfYear
TimeDayOfYear
返回指定日期在一年中的天数。
int TimeDayOfYear(
datetime date // date and time
);参数
- date
[in] 自1970年1月1日午夜(00:00:00)以来经过的秒数表示的日期时间。
返回值
指定日期在一年中的天数(1表示1月1日,365表示12月31日)。
示例:
int nday=TimeDayOfYear(TimeCurrent());最后更新于