Ah. I see what the problem is. I, from a point of knowing nothing about game development and programming, have assumed that it would be easier to implement phases than a continuous system. If that simply isn't right, then I of course agree that it would be much more complicated than I thought. Maybe somebody with experience in the field could confirm/deny that.
However, the baseline idea of rests progressing the daytime works even if you have only two phases (day/night) and not three.