We start by specifying the hour of the day when our three shifts begin, __1stBegin, __2ndBegin, and __3rdBegin. We then get the value of the hour we are working with and store this in theĀ __Time variable. We can then use this information to return the correct shift for the hour by using a SWITCH statement.