### Description: Compute the difference between two dates in seconds URL: http://sebsauvage.net/python/snyppets/index.html License: Unspecified/Public Domain ### import datetime,time def dateDiffInSeconds(date1, date2): timedelta = date2 - date1 return timedelta.days*24*3600 + timedelta.seconds