Random Riddle: A Time When They Are Green

A time when they are green, a time when they’re brown, but both of these times, cause me to frown. But just in between, for a very short while, They’re perfect and yellow and cause me to smile!

What am I talking about here?
 

Riddle