Calculating time and date in dialplan

from my mysql cdr i m getting RECENT CALL TIME as ‘2015-07-23 22:39:00’ . i want to evaluate this time with my current time in dialplan.

it’ll be like if ${currenttime} > ${RECENTCALLTIME} go to …

i can get the recent call time from mysql through odbc function . but cant understand how to compare this time with current time in dialplan

thanks in advance

figured it out

${STRPTIME()} function can convert both date into seconds . then calculation/comparison between seconds is easy …