difference between dates in min/sec/hours

Author: lalitpct@gmail.com (lalitpct)

are there inbuilt funstions to calculate the difference between two dates in hours or minutes on seconds
for eg A) 01-sept-2012 11:20:09 B) 06-sept-2012 01:22:00