Computes the difference between two dates
6
Computes the difference between two dates in seconds
###
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






There are currently no comments for this snippet.