An airline transport pilot can fly for up to 8 hours within a 24-hour period, and up to 10 hours if there is a second pilot aboard. After flying, pilots are required to rest for at least 16 hours. Some companies have variances to these regulations depending on their operations specifications.