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

Whoops, I though I was posting in DateTime Conversion (openHAB 3.x)

Sorry, I was researching so much I must have posted in the wrong topic. Sorry.