In mm_x's day/night thing, there are check boxes. Leave one unchecked. Then, use the windows in that pallet. Then, you can leave it as is, or, use a setmaptile script that checks the time. That, I won't tell you how to do exactly, I'll just give some pointers.