qtDateTime
 All Classes Functions Variables
qtdatetime::qtdt_f_cumulateddays Interface Reference

Public Member Functions

integer function qtdt_f_cumulateddaysi4 (iMonth, iYear)
 

qtDT_F_CumulatedDays

Returns the cumulated number of days in the months of a year before the given month More...
 
integer function qtdt_f_cumulateddaysi2 (iMonth, iYear)
 

Member Function/Subroutine Documentation

integer function qtdt_f_cumulateddaysi4 ( integer(qtdt_k_int4), intent(in)  iMonth,
integer(qtdt_k_int4), intent(in)  iYear 
)

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.

integer function qtdt_f_cumulateddaysi2 ( integer(qtdt_k_int2), intent(in)  iMonth,
integer(qtdt_k_int4), intent(in)  iYear 
)