Original: The length of day and night could be re-programmed to compensate for the changing lengths of day and night throughout the year.
Simplified: The length of day and night could be re-programmed every day in order to account for the changing lengths of day and night throughout the year.