qtDateTime
 All Classes Functions Variables
qtdatetime::operator(+) Interface Reference

Public Member Functions

type(qtdt_t_date) function qtdt_f_dateadddays (tDateS, nDays)
 

qtDT_F_DateAddDays

Returns a date that is the result of adding days to a given date More...
 
type(qtdt_t_time) function qtdt_f_timeplustime (tTime1, tTime2)
 

qtDT_F_TimePlusTime

Returns a time that is the result of adding two time values More...
 

Member Function/Subroutine Documentation

type (qtdt_t_date) function qtdt_f_dateadddays ( type (qtdt_t_date), intent(in)  tDateS,
integer(qtdt_k_int4), intent(in)  nDays 
)

qtDT_F_DateAddDays

Returns a date that is the result of adding days to a given date

Usage:

 tDateE = tDateS + nDays
 tDateE = nDays + tDate1
 tDateE = qtDT_F_DateAddDays( tDateS, nDays )
 tDateE = qtDT_F_DateAddDays( nDays, tDateS )
Parameters
tDateS: date
nDays: number of days added to tDateS (or substracted from tDateS when negative)

Returns the date that is the result of a given date to which is added a number of days. If the number of days given is negative than these days are substracted from the given date.
If an invalid date is specified, the function returns the value of qtDT_T_Date(-1,-1,-1) .
The function is used to overload the operators + and - .

type (qtdt_t_time) function qtdt_f_timeplustime ( type (qtdt_t_time), intent(in)  tTime1,
type (qtdt_t_time), intent(in)  tTime2 
)

qtDT_F_TimePlusTime

Returns a time that is the result of adding two time values

Usage:

 tTime3 = tTime1 + tTime2
 tTime3 = qtDT_F_TimePlusTime( tTime1, tTime2 )
Parameters
tTime1: time1
tTime2: time2 to be added to time1

Returns a time that is the result of adding two time values.
The function is used to overload the operator + .