This is a very simple script. When the player rests AND if the rest event finishes, meaning no random monsters appeared, then the game clock will advance eight hours.
Its surprising that something like this wasn't in the original Neverwinter Nights. Only because of how simple this is and the fact that the game had a day/night cycle.
This is one of the first scripts I ever wrote. Honestly, it shouldn't be in a portfolio but I keep it around to see where and how my love began. Something was "missing"... then I fixed it.