def shift_time(dtime, shift):
 return (dtime + timedelta(seconds=shift))

def shift_time ( dtime , shift ) : return ( dtime + timedelta ( seconds = shift ) )
adds/deletes an integer amount of seconds from a datetime specification .