Officer of the watch

A junior officer assigned as acting commanding officer during normal operations. An example from TNG would be Lt. Commander Data serving as C.O. on the night (gamma) watch. In an emergency the captain would assume command from this officer.