It takes 24 hours for the earth to turn all the way around (rotation).That makes one day.
At any moment,half of the world is in daytime and half is in nighttime.