For every 24 hours, a pilot must be able to look back and see at least eight consecutive hours when he or she was not in the cockpit. The airlines call that eight hours of rest, but pilots note that it includes the time it takes to travel to a hotel, eat, get ready for bed, sleep, and then get back to the airport.