The Torah teaches here that the sun and the moon have two distinct functions. The first is to differentiate between different times and seasons, a kind of celestial luach (calendar). The second is to illuminate the planet. Rashi understands that these two purposes are listed in order of importance.
The revered pre-War thinker, Rabbi Elchonon Wasserman, questions the order. Indeed, one could argue that the effect of sun's radiance is eminently more significant than the cycles of day and night and the lunar phases.
After all, days, months and seasons can be effortlessly calculated today by any standard computer, without the aid of any shifting luminaries. Moreover, there are certain parts of the world that experience 24-hour periods of sunlight, yet life goes on.
Rabbi Wasserman answers that the Torah's sequence testifies to the value of time. Dramatic sunsets and the nocturnal emergence of the moon and stars are designed to remind us that our time is ephemeral.
Each moment of life comes and goes, never to return. Ensuring our appreciation of time's fleeting, precious nature is more crucial than our ability to see the world. Indeed, the word for "time" in Hebrew is z'man. It is closely related to the word zimun, meaning "invite". Every moment of our lives, therefore, is an invitation, an opportunity to experience something tremendous.
There is an account of a certain rabbi who never wasted a second. Every moment was utilised for acts of kindness. When he died, visitors noticed that all the clocks in his house had suddenly stopped as if to proclaim that he had squeezed every drop of opportunity out of his allotted portion of history.
In this world of tomorrow, and tomorrow, and tomorrow, as the Bard would say, we are challenged to maximise our spiritual productivity until the last syllable of recorded time.