qtDateTime
|
Public Member Functions | |
integer function | qtdt_f_daysinmonth4 (iMonth, iYear) |
qtDT_F_DaysInMonthReturns the number of days of a month for the specified year More... | |
integer function | qtdt_f_daysinmonth2 (iMonth, iYear) |
qtDT_F_DaysInMonthReturns the number of days of a month for the specified year More... | |
integer function | qtdt_f_daysinmontht (tDate) |
qtDT_F_DaysInMonthReturns the number of days of a month for the specified date More... | |
integer function qtdt_f_daysinmonth4 | ( | integer(qtdt_k_int4), intent(in) | iMonth, |
integer(qtdt_k_int4), intent(in) | iYear | ||
) |
Usage:
nDays = qtDT_F_DaysInMonth( iMonth, iYear )
iMonth | : month specification |
iYear | : year specification |
Returns the number of days of a month for the specified year considering if the given year is a leap-year. Thus, if iMonth = 2 (February), the function will return 29 days if a leap-year is given (e.g., iYear = 2012), otherwise 28 will be the result.
Alternative: nDays = qtDT_F_DaysInMonth( tDate )
integer function qtdt_f_daysinmonth2 | ( | integer(qtdt_k_int2), intent(in) | iMonth, |
integer(qtdt_k_int4), intent(in) | iYear | ||
) |
Usage:
nDays = qtDT_F_DaysInMonth( iMonth, iYear )
iMonth | : month specification |
iYear | : year specification |
Returns the number of days of a month for the specified year considering if the given year is a leap-year. Thus, if iMonth = 2 (February), the function will return 29 days if a leap-year is given (e.g., iYear = 2012), otherwise 28 will be the result.
Alternative: nDays = qtDT_F_DaysInMonth( tDate )
integer function qtdt_f_daysinmontht | ( | type (qtdt_t_date), intent(in) | tDate | ) |
Usage:
nDays = qtDT_F_DaysInMonth( tDate )
tDate | : date specification (from which month and year are used) |
Returns the number of days of a month for the specified date's year and month.
Alternative: nDays = qtDT_F_DaysInMonth( iMonth, iYear )