qtDT_F_CumulatedDays
Returns the cumulated number of days in the months of a year before the given month
Usage:
nDays = qtDT_F_CumulatedDays( iMonth, iYear )
- Parameters
-
iMonth | : month specification |
iYear | : year specification |
The days in the months of the year are cumulated up to the month specified and returned.
So, if the month of January is given (iMonth = 1), the function will return 0.
Or for example, if iMonth = 3 (March), the function will either return 59 (= 31 + 28) or 60 (= 31 + 29), depending if a leap-year is specified (e.g., iYear = 2012) or not.