qtDateTime
 All Classes Functions Variables
qtdatetime::qtdt_f_daysinyear Interface Reference

Public Member Functions

integer function qtdt_f_daysinyeari (iYear)
 

qtDT_F_DaysInYear

Returns the number of days in a year More...
 
integer function qtdt_f_daysinyeart (tDate)
 

qtDT_F_DaysInYear

Returns the number of days in a year More...
 

Member Function/Subroutine Documentation

integer function qtdt_f_daysinyeari ( integer(qtdt_k_int4), intent(in)  iYear)

qtDT_F_DaysInYear

Returns the number of days in a year

Usage:

iRet = qtDT_F_DaysInYear( iYear )  
Parameters
iYear: year
Returns
365   if year in date is not a leap-year
366   if year in date is a leap-year

Alternative function interface see below.

integer function qtdt_f_daysinyeart ( type (qtdt_t_date), intent(in)  tDate)

qtDT_F_DaysInYear

Returns the number of days in a year

Usage:

iRet = qtDT_F_DaysInYear( tDate )  
Parameters
tDate: date specification
Returns
365   if year in date is not a leap-year
366   if year in date is a leap-year

Alternative function interface see above.