日期问题?
比如 2005年3月
我怎么样获得31天?
2005年4月
30天
问题点数:20、回复次数:2Top
1 楼samchoy(老蔡)回复于 2005-04-02 17:33:00 得分 20
Unit
DateUtils
Category
date/time routines
extern PACKAGE Word __fastcall DaysInAMonth(const Word AYear, const Word AMonth);
Description
Call DaysInAMonth to obtain the number of days in the specified month of the specified year.
AYear is a year between 1 and 9999 (inclusive).
AMonth is a month between 1 and 12 (inclusive).
如
int d1 = DaysInAMonth(2005, 3);
int d2 = DaysInAMonth(2005, 4);
Top
2 楼samchoy(老蔡)回复于 2005-04-02 17:34:29 得分 0
记得
#include <DateUtils.hpp>
Top




