How does the earth rotation affect day and night?