That depends on the meaning.
One meaning is longest daylight hours. This happens at summer solstice.
Another meaning is, the time the earth takes to spin on its axis once, with reference to the sun. This happens at perihelion of earth's orbit, where it is more than 24 clock hours.