Design Pattern: Simple State Machine (e.g. Time Of Day)

Here is a link to an expansion of the pattern to include times of year.