qtDateTime
 All Classes Functions Variables
qtdatetime::qtdt_f_daysinmonth Interface Reference

Public Member Functions

integer function qtdt_f_daysinmonth4 (iMonth, iYear)
 

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified year More...
 
integer function qtdt_f_daysinmonth2 (iMonth, iYear)
 

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified year More...
 
integer function qtdt_f_daysinmontht (tDate)
 

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified date More...
 

Member Function/Subroutine Documentation

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

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified year

Usage:

nDays = qtDT_F_DaysInMonth( iMonth, iYear )  
Parameters
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 
)

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified year

Usage:

nDays = qtDT_F_DaysInMonth( iMonth, iYear )  
Parameters
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)

qtDT_F_DaysInMonth

Returns the number of days of a month for the specified date

Usage:

nDays = qtDT_F_DaysInMonth( tDate )  
Parameters
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 )