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

Public Member Functions

logical function qtdt_f_dategt (tDate1, tDate2)
 

qtDT_F_DateGT

Checks if a date is greater than another. More...
 
logical function qtdt_f_timegt (tTime1, tTime2)
 

qtDT_F_TimeGT

Checks if a time value is greater than another. More...
 

Member Function/Subroutine Documentation

logical function qtdt_f_dategt ( type (qtdt_t_date), intent(in)  tDate1,
type (qtdt_t_date), intent(in)  tDate2 
)

qtDT_F_DateGT

Checks if a date is greater than another.

Usage:

lRet = ( tDate1 > tDate2 )
lRet = qtDT_F_DateGT( tDate1, tDate2 )
Parameters
tDate1: date to be compared
tDate2: date to be compared

Compares if a date is greater (is more recent) than another, and returns .TRUE. if so.
For example, the date 25.4.2013 is greater than 21.8.2012.
The function is used to overload the logical operators .GT. and > .

logical function qtdt_f_timegt ( type (qtdt_t_time), intent(in)  tTime1,
type (qtdt_t_time), intent(in)  tTime2 
)

qtDT_F_TimeGT

Checks if a time value is greater than another.

Usage:

lRet = ( tTime1 > tTime2 )
lRet = qtDT_F_TimeGT( tTime1, tTime2 )
Parameters
tTime1: time to be compared
tTime2: time to be compared

Compares if a time value is greater (later) than another, and returns .TRUE. if so.
For example, the time 23:41:06:566 is greater than 22:59:01:398.
The function is used to overload the logical operators .GT. and > .