I amended my solution to use literal times instead of computing them.
If(
06:00:00 <= :CST < 12:00:00, "Morning Shift",
12:00:00 <= :CST < 21:00:00, "Afternoon Shift",
"Night Shift",
);
I think that it improves the legibility and efficiency of this formula.