new hour,minute,second;gettime(hour,minute,second);if(minute == 0 && second == 0){//move gate bla bla bla}