Compute seconds from timedelta.