NEI in cheat mode (or utility mode, if time manipulation is activated) lets you right-click any quarter of the day to turn it off. Turn off the daytime and it'll be perma-night (with some mild visual irritants around the dawn-dusk transition). Switch back to recipe mode when you're done, if you wish.