Alternate Entry Name: _INDAYS
B: daynum = .indays(year,month,day);
C: #include <t_ctrl.h> int _indays(int year,int month,int day);
.indays(1970,1,1)
is zero.
.INDAYS returns the number of days between the given date and January 1, 1970.
The "month" argument may fall outside the range from 1 to 12. If so, .INDAYS reduces the month modulo 12, and adjusts the year accordingly. For example,
.indays(1990,13,1)
represents 13 months after the beginning of 1990; thus it stands for January 1, 1991.
Similarly, the days argument can fall outside the range of dates that actually exist within the month. If so, .INDAYS reduces the day figure to an appropriate range and adjusts the month and year accordingly.
Copyright © 1996, Thinkage Ltd.