To us a day means from sunrise to sunset, but in books, one day is considered to last from when the sun rises to when it returns to where it started from. In that interval there are considered to be 24 hours.