Random Riddle: Green or Brown

A time when they’re 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 absolutely yellow,
And cause me to smile.

What am I talking about here?
 

Random Riddle: Green or Brown