def due_in_minutes(timestamp):
 diff = (datetime.strptime(timestamp, '%d/%m/%Y %H:%M:%S') - dt_util.now().replace(tzinfo=None))
 return str(int((diff.total_seconds() / 60)))

def due_in_minutes ( timestamp ) : diff = ( datetime . strptime ( timestamp , '%d/%m/%Y %H:%M:%S' ) - dt_util . now ( ) . replace ( tzinfo = None ) ) return str ( int ( ( diff . total_seconds ( ) / 60 ) ) )
get the time in minutes from a timestamp .