Is there any function availaible to calculate the time difference between two time and dates?

Thanks in advance