He made the moon to mark the seasons, and the sun knows when to go down. (NIV)
[The Lord] appointed the moon for the seasons; the sun knows [the exact time of] its setting. (AMP)
He appointed the moon for seasons: the sun knoweth his going down. (KJV)