How does the sun affect a farmer's job?

plants make food with the help of photosynthesis which is a light process or it happens in the presence of sunlight only. If sun doesnt come out, plants will ultimately die out (the same thing happens if humans dont eat food for long). This will act as a hindrance in "life-cycle" and will ultimately affect all living beings (including us) as we eat the plants only.
that was for the plants.. if plants wont grow (including all the crops and all), farmer will not be able to do anything. Farmer will be destroyed when he will see his cropfield "dead"! He cant earn by selling dead crops.