What determines a day on a planet?
The position of the sun in the sky for a person standing on the planet