The Krusty Krab operates on cartoon logic: it is simply open when the plot demands it.
There's been episodes where characters open it up first thing in the morning, as well as episodes (like the Halloween specials) where it's open all night.