def timedelta_as_seconds(td):
 return ((td.days * 86400) + td.seconds)

def timedelta_as_seconds ( td ) : return ( ( td . days * 86400 ) + td . seconds )
returns the value of the entire timedelta as integer seconds .